Redirect .htaccess重写规则未重定向

Redirect .htaccess重写规则未重定向,redirect,mod-rewrite,Redirect,Mod Rewrite,这是在我的开发系统(WAMP)上运行的,但肯定发生了一些变化,现在它给出了一个404文件未找到错误。客户端访问如下,然后它应该重定向到URL,如下所示。它可以在实时站点上运行,但不能在本地副本上运行。在httpd.conf中启用LoadModule rewrite\u module modules/mod\u rewrite.so。有什么想法吗 也许不是这样的答案,但它开始神秘地再次工作,因为它停止了 只是澄清一下,我并不是在运行某人创建的一体化WAMP包,而是单独安装服务器应用程序。 Rew

这是在我的开发系统(WAMP)上运行的,但肯定发生了一些变化,现在它给出了一个404文件未找到错误。客户端访问如下,然后它应该重定向到URL,如下所示。它可以在实时站点上运行,但不能在本地副本上运行。在httpd.conf中启用LoadModule rewrite\u module modules/mod\u rewrite.so。有什么想法吗


也许不是这样的答案,但它开始神秘地再次工作,因为它停止了

只是澄清一下,我并不是在运行某人创建的一体化WAMP包,而是单独安装服务器应用程序。
RewriteEngine on

# Local RewriteEngine
#RewriteRule ^$   http://domainname.loc/
RewriteRule ^All$   http://domainname.loc/index.php?ClientID=00
RewriteRule ^FirstClient$   http://domainname.loc/index.php?ClientID=1
RewriteRule ^SecondClient$  http://domainname.loc/index.php?ClientID=2
RewriteRule ^ThirdClient$  http://domainname.loc/index.php?ClientID=3
RewriteRule ^FourthClient$  http://domainname.loc/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