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。 –