httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darly Coupet" <apa...@tsgi.net>
Subject Re: [users@httpd] Rewriterule syntax not working
Date Fri, 17 Nov 2006 03:29:23 GMT
Old url
http://www.sitename.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz

New URL
http://www.sitename.com/index.php?action=view_user&user=2

htaccess is located in folder Merchant2

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING}
^Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$
RewriteRule ^/Merchant2/merchant.mv
http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L]

It s still not being rerouted.

Thanks, Darly

On 11/16/06, Joshua Slive <joshua@slive.ca> wrote:
>
> On 11/16/06, Darly Coupet <apache@tsgi.net> wrote:
> > RewriteCond %{QUERY_STRING}
> >
> /Merchant2/merchant.mv?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz
> > RewriteRule ^/$
> > http://www.sitename.com/index.php?action=view_user&user=2
> > [R=301,L]
> >
> > The condition is not met; It is going to the old url.
> > It should redirect to the new url when the old string (url) is true.
>
> If you were using the RewriteLog, you'd see that the contents of the
> %{QUERY_STRING} is the part after the question mark.
>
> RewriteCond %{QUERY_STRING}
> ^Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$
> RewriteRule ^/Merchange2/merchant.mv
> http://www.sitename.com/index.php?action=view_user&user=2 [R=301,L]
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message