【发布时间】:2013-08-14 06:56:16
【问题描述】:
我最近不得不在我的开发计算机中重新安装我的操作系统,并且在重新安装 WAMP 和我的数据库等之后,我现在遇到了 500 错误。
日志:
[Wed Aug 14 02:40:02.317999 2013] [core:alert] [pid 3864:tid 856] [client ::1:58187] C:/wamp/www/MonsterFleaMarket/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/
我的 HTACCESS:
ErrorDocument 404 /404.php
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)$ /MonsterFleaMarket/user_home.php?domain=$1 [L,QSA]
请帮忙!这在重新安装之前工作正常。我能做什么?
【问题讨论】:
-
在
httpd.conf (Apache/conf)启用这个模块并取消注释LoadModule rewrite_module modules/mod_rewrite.so,啊,别忘了重启...
标签: php apache .htaccess rewrite wamp