Forum Moderators: phranque
Im sadly not an expert when it comes to dynamic url re-writing.
Im trying to do the following:
RewriteEngine On
RewriteBase /
RewriteRule details.php?i=19 DOMAIN/NAME.php [R=301,L]
RewriteRule products.php?c=6 DOMAIN/NAME.php [R=301,L]
But its not working, ive read around and come to the conclusion that some form of condition must be written, not sure how to :(
I have ID numbers ranging up to 36.
All help is appreciated
RewriteEngine on
RewriteBase /
#
RewriteCond %{QUERY_STRING} ^i=19$
RewriteRule ^details\.php$ http://example.com/name.php [R=301,L]
#
RewriteCond %{QUERY_STRING} ^c=6$
RewriteRule ^products\.php$ http://example.com/name.php [R=301,L]
Jim