这正在我的开发系统(WAMP)上工作,但必须改变一些东西,现在它提供了404 File Not Found错误。客户端访问如下,然后它应该重定向到URL,如下所示。它适用于实时网站,但不适用于我的本地副本。 在httpd.conf中启用了LoadModule rewrite_module modules / mod_rewrite.so 。有什么想法吗?
http://domainname.dev/FirstClient
RewriteEngine on
# Local RewriteEngine
#RewriteRule ^$ http://domainname.dev/
RewriteRule ^All$ http://domainname.dev/index.php?ClientID=00
RewriteRule ^FirstClient$ http://domainname.dev/index.php?ClientID=1
RewriteRule ^SecondClient$ http://domainname.dev/index.php?ClientID=2
RewriteRule ^ThirdClient$ http://domainname.dev/index.php?ClientID=3
RewriteRule ^FourthClient$ http://domainname.dev/index.php?ClientID=4
# Online RewriteEngine
#RewriteRule ^$ http://www.domainname.net/
#RewriteRule ^All$ http://www.domainname.net/index.php?ClientID=00
#RewriteRule ^FirstClient$ http://www.domainname.net/index.php?ClientID=1
#RewriteRule ^SecondClient$ http://www.domainname.net/index.php?ClientID=2
#RewriteRule ^ThirdClient$ http://www.domainname.net/index.php?ClientID=3
#RewriteRule ^FourthClient$ http://www.domainname.net/index.php?ClientID=4
答案 0 :(得分:0)
也许不是这样的答案,但是当它停止时,它开始神秘地再次起作用了!