在tp用了url重写,上传百度云后无效了
php吧
全部回复
仅看楼主
level 11
在tp用了url重写,上传百度云后无效了,必须要写index.php,否则404,而在本地是好好的,是我哪里没有弄对吗
2016年09月09日 09点09分 1
level 11
[乖]
2016年09月09日 09点09分 2
level 10
你在网站根目录下新建以后index.php 然后 里面写一个简单的输出语句看看能输出不
2016年09月09日 09点09分 4
能啊 就是tp用了url重写上传以后无效。近下面的控制器必须要在其之前输入index.php
2016年09月09日 10点09分
level 8
有服务器账号密码没?没有就在php文件里面function isRewriteMod(){ if (function_exists('apache_get_modules')) { $aMods = apache_get_modules(); $bIsRewrite = in_array('mod_rewrite', $aMods); } else { $bIsRewrite = (strtolower(getenv('HTTP_MOD_REWRITE')) == 'on'); } return $bIsRewrite;},有就看这个链接http://www.zhuitaiyang.com/html/2013/linux_0731/303.html,不行再问我.....
2016年09月09日 10点09分 6
我看了百度云的开发文档。说是写一个app.conf文件就行了 .htaccess不支持,可是我不会写,有现成的吗
2016年09月09日 11点09分
level 11
我看了百度云的开发文档,说是写一个app.conf就行了,.htaccess不支持,可是我不会写 有现成的吗
2016年09月09日 11点09分 7
http://www.thinkphp.cn/topic/11692.html看这个,里面有你需要的
2016年09月10日 01点09分
@仅仅如此℃ 大体oK了 个别网页css样式乱了 这又是为什么啊
2016年09月10日 05点09分
@哥没钱和你寂寞 你看看css文件引入的路径是不是有问题哦,可能有的没引入吧
2016年09月10日 06点09分
回复 justcail :确实是路径问题 解决了谢谢啦
2016年09月10日 06点09分
1