网址安装在二级目录下网址后面的:37001/如何去掉?
网址安装在二级目录下,后台网站设置中修改了域名,但网站翻页中链接网址后面的:37001/还是在。没法正常翻页。这该如何去掉?请各位大侠赐教,小弟先谢过了!在更目录下面的
/include/global.func.php
文件里面,找到433行代码
432:case 'port':
433:return $_SERVER['SERVER_PORT'] == '80' ? '' : ':'.$_SERVER['SERVER_PORT'];
434: break;
把433行代码改成下面的:
return $_SERVER['SERVER_PORT'] == '80' ? '' : $_SERVER['SERVER_PORT'] == '37001' ? '' : ':'.$_SERVER['SERVER_PORT'];
就可以,之后上传,刷新,应该就可以了!
我试过的!方法都是自己想的
http://bbs.destoon.com/static/image/smiley/default/handshake.gif
http://bbs.destoon.com/static/image/smiley/default/handshake.gif
http://bbs.destoon.com/static/image/smiley/default/handshake.gif
http://bbs.destoon.com/static/image/smiley/default/handshake.gif
讲得太好了
http://bbs.destoon.com/static/image/smiley/default/victory.gif
http://bbs.destoon.com/static/image/smiley/default/victory.gif
http://bbs.destoon.com/static/image/smiley/default/victory.gif
什么东西,没看懂
http://bbs.destoon.com/static/image/smiley/default/mad.gif
给力,BUG终于解决了。
页:
[1]