[Zen Cart] Adding a redirect rule
[Zen Cart] Adding a redirect rule
would you know how i can add a rule to my htaccess to permanently redirect:
http://www.mysite.com/?abcd
to
http://www.mysite.com/?aid=abcd
Thanks
L.
Re: [Zen Cart] Adding a redirect rule
Code: Select all
RewriteCond %{QUERY_STRING} ^([a-z]*)$ [NC]
RewriteRule (.*) http://www.mysite.com/$1?aid=%1 [R=301,L]
This should work for any URL on your site ending with "?aid=abcd".
Re: [Zen Cart] Adding a redirect rule
Re: [Zen Cart] Adding a redirect rule
Re: [Zen Cart] Adding a redirect rule
?abcd2
to
?aid=abcd2
I mean with letters and numbers?
Re: [Zen Cart] Adding a redirect rule
Code: Select all
RewriteCond %{QUERY_STRING} ^([a-z0-9]*)$ [NC]
RewriteRule (.*) http://www.mysite.com/$1?aid=%1 [R=301,L]
Re: [Zen Cart] Adding a redirect rule
?abcd2
?abc2d
?a2bcd
I mean no matter the order letter number?