Apache mod_rewrite不会重写,日志中没有错误
我正试图重写Apache mod_rewrite不会重写,日志中没有错误,apache,mod-rewrite,Apache,Mod Rewrite,我正试图重写 http://localhost/pex/index.php?p=login 到 如果设置了重新获取 http://localhost/pex/index.php?p=login&re=users 到 我使用了一个建议: RewriteEngine On RewriteRule ^pex/([^/]*)/re/([^/]*)$ /pex/index.php?p=$1&re=$2 [L] 这在WAMP上不起作用,并且在LogLevel=debug时没有生成错误
http://localhost/pex/index.php?p=login
到
如果设置了重新获取
http://localhost/pex/index.php?p=login&re=users
到
我使用了一个建议:
RewriteEngine On
RewriteRule ^pex/([^/]*)/re/([^/]*)$ /pex/index.php?p=$1&re=$2 [L]
这在WAMP上不起作用,并且在LogLevel=debug时没有生成错误
请注意,/pex/只是一个临时文件夹,它最终将位于根目录中
提前感谢 尝试将其添加到httpd.conf中
<Directory "/path/to/site">
AllowOverride All
</Directory>
还是没什么
Options+FollowSymlinks-RewriteEngine-On-RewriteRule^pex/([^/]*)/re/([^/]*)$/pex/index.php?p=$1&re=$2[L]
DocumentRoot c:/wamp/www/AllowOverride-All
这是我的httpd。我已经尝试了本地系统和服务器,它们托管了许多在.htaccess中有可用mod\u重写规则的站点
RewriteEngine On
RewriteRule ^pex/([^/]*)/re/([^/]*)$ /pex/index.php?p=$1&re=$2 [L]
<Directory "/path/to/site">
AllowOverride All
</Directory>
Options +FollowSymlinks