0
我将此内容添加到我的.htaccess
到根目录。但我得到了403条禁止的消息!403禁止发布的消息index.php
AddType application/x-httpd-php53 php53 php
php_flag log_errors on
php_flag display_errors on
#php_value error_reporting 8
php_value error_reporting E_ALL
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^shidsa.com/$ [NC]
RewriteRule ^(.*)$ http://www.shidsa.com/$1 [R=301,L]
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
order allow,deny
allow from all
这应该很好地工作:
在示出的代码,没有指令使403响应。必须有其他指令,无论是在.htaccess文件还是在主配置中。 –
当我删除它我的网址将工作。 –
也许你的脚本返回403,或者你的服务器上没有PHP版本5.3。 –