即时通讯使用plesk托管我的网页。当我打开根域(e.G:“xxxxxx.xx”)时,我的vServer正在记录以下错误:
选项FollowSymLinks或SymLinksIfOwnerMatch已关闭,这意味着禁止使用RewriteRule指令:/var/www/vhosts/xxxxxx.xx/httpdocs/index.pl
我在httpdocs中没有index.pl文件。 当我调用“xxxxxx.xx / index.php”或其他页面时,会发生 not 错误。
我的htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^products/(.*)/(.*)/$ products.php?id=$1&p=$2 [QSA,L]
RewriteRule ^static/(.*)/(.*)/$ static.php?id=$1 [QSA,L]
RewriteRule ^index\.php$ - [L]
任何想法,我怎么能解决这个问题?
答案 0 :(得分:5)
我知道这听起来可能不对,但在您的plesk域设置中,请确保已选中cgi支持,但未选中perl支持。即使使用修改后的Apache conf文件,当使用mod_rewrite规则时,我也无法将403禁止的错误消失。一旦我取消选中plesk配置中的perl选项,域perl就会重写工作。