【发布时间】:2015-08-16 11:12:06
【问题描述】:
我刚刚将我的本地项目(覆盖现有的正常工作的项目)上传到远程服务器。
我的 .htaccess 看起来像:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
<Files "index.php">
AcceptPathInfo On
</Files>
RewriteRule ^username http://www.google.com
#^([a-zA-Z0-9_-]+)$ user/profile/USERNAME=$1
日志错误:
Application.cpp:256 中的 SoftException:文件 "/home/fewextra/public_html/index.php" 可以按组写
浏览器错误:
知道如何解决吗? 到目前为止,我尝试了 this 和 this 但没有运气。
注意:同一个项目,当我上传到另一台服务器时,它可以工作。
【问题讨论】:
-
删除最后一条规则中
[NC,L]之后的所有内容 -
检查 Apache error.log
标签: php .htaccess codeigniter web-hosting remote-server