错误500 .htaccess

时间:2015-01-02 16:29:10

标签: php apache .htaccess

好的!我已经在这里待了一个多小时,谷歌搜索并四处寻找答案。 每当我尝试访问我的页面时,我都会得到这个:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.6.3 mod_perl/2.0.8-dev Perl/v5.16.3

我已经能够找到问题出在htaccess文件中。 我做错了什么?

Htaccess文件

RewriteEngine On
RewriteBase /

RewriteRule ^i([0-9]+)$ view.php?id=$1 [QSA,L]
RewriteRule ^login$ login.php [QSA,L]
RewrireRule ^register$ register.php [QSA,L]

通过打开错误日志,我找到了问题,我拼错了最后一个RewriteRule。现在,它给了我一个404页面。

1 个答案:

答案 0 :(得分:0)

感谢@ sumurai8它现在有效。

我拼错了最后一次RewriteRule