Forum Moderators: phranque

Message Too Old, No Replies

Permanent forward of dynamic URL using .htaccess

Permanent forward of dynamic URL using .htaccess

         

rb4580

5:28 pm on Feb 21, 2006 (gmt 0)

10+ Year Member



I am trying to forward a few URLs using .htaccess. I have tried the following:

RewriteRule ^shop/proddetail\.php\?prod=widgets$ http://www.site.com/shop/page.php [R=301,L]

But this is not working... any suggestions? I have been trying for weeks!

jdMorgan

5:57 pm on Feb 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Weeks? See the RewriteCond [httpd.apache.org] directive of mod_rwrite, and specifically, its use with the server %{QUERY_STRING} variable.

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim