【问题标题】:REWRITE ERROR APACHE (WIN)重写错误 Apache (WIN)
【发布时间】: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


【解决方案1】:

在您的httpd.conf 中启用mod_rewrite 指令

它通常只是在全新安装时被注释掉。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-15
    • 2013-12-27
    • 1970-01-01
    相关资源
    最近更新 更多