.htaccess文件导致localhost错误

时间:2013-07-06 17:38:04

标签: .htaccess localhost

这是我的.htaccess文件代码,它位于localhost的根目录下,没有它工作正常,所以它有问题:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRUl .* /index.php [L]

尝试加载任何页面时出现以下错误消息:

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.
[...]
06/07/2013 12:34:52 p.m.
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

提前致谢。

1 个答案:

答案 0 :(得分:0)

错误发生在.htaccess文件的最后一行,语法错误,应该是:

RewriteRule .* /index.php [L]

非常感谢: - )