【发布时间】:2011-10-03 04:46:34
【问题描述】:
我面临一个关于我的 .htaccess 文件的问题,这里是文件中的代码
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^category/([^/\.]+)/?$ index.php?category=$1 [L]
RewriteRule ^department/([^/\.]+)/?$ index.php?department=$1 [L]
RewriteRule ^brand/([^/\.]+)/?$ index.php?brand=$1 [L]
RewriteRule ^product/([^/\.]+)/?$ index.php?product=$1 [L]
RewriteRule ^basket/([^/\.]+)/?$ index.php?basket=$1 [L]
</IfModule>
一旦我加载网站,它就会给我这个错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
一旦我删除了 .htaccess 文件内容,网站就会恢复正常工作
【问题讨论】:
-
这是因为选项 +FollowSymLinks,一旦我将其删除,它就可以正常工作了,谢谢
标签: php .htaccess mod-rewrite apache2