【发布时间】:2014-05-19 12:33:17
【问题描述】:
我的 htaccess 文件中有以下代码:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^forums/ - [L,NC]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
------------------------------------------------
我的 .htaccess 目录是这样的:
..wamp/www/.htaccess
我的网站目录是这样的
..wamp/www/Careers
当我加载我的职业文件夹或本地主机时,它会给出一个错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@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.
【问题讨论】:
-
您在 apache 错误日志中可以看到什么?它可能在
wamp/logs/文件夹中。它应该有一个错误。也许你的重写模块没有加载? -
查看您的错误日志 (Apache) 并找到错误。
-
如何加载重写模块??
标签: php .htaccess seo localhost