+ -
当前位置:首页 → 问答吧 → 谁会apache重写啊 帮我看个错误

谁会apache重写啊 帮我看个错误

时间:2008-11-11

来源:互联网

500错误重写规则如下:
Options +FollowSymLinks
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !

-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
apache错误信息:
[Tue Nov 11 18:28:10 2008] [alert] [client 127.0.0.1] D:/wamp/www/sweetcron/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/
[Tue Nov 11 18:28:10 2008] [error] [client 127.0.0.1] File does not exist: D:/wamp/www/favicon.ico
我该怎么改啊!

作者: dick571   发布时间: 2008-11-11

httpd.conf中 AllowOverride All,且 加载 rewrite.so的前提下

可以在
<VirtualHost *:80>
    ...
    ...
ErrorDocument 500 /500.html
</VirtualHost>
重写方法B
.htaccess 文件中
RewriteEngine on
ErrorDocument 500 /500.html

您可以去试试

作者: CFC4N   发布时间: 2008-11-12

楼上的经典

作者: xieaotian   发布时间: 2008-11-13

可惜,没 开源币啊! 还不如发帖的呢! 我觉得,获得开源币的规则,要修改下,对于回答者,也应该有相应的鼓励!

作者: CFC4N   发布时间: 2008-11-13

热门下载

更多