Forum Moderators: phranque
to
[local:80...] (nn from above)
For example:
Redirect URL
[local:80...]
to
[local:80...]
The rule that I wrote is mentioned below:
RewriteRule ^([^/\.]+)/?$ /shop/catalog.php?prodid=$1 [L]
But this doesn't seem to be working though I have enabled the required config on Apache (tested it through htaccess by doing a hardcode url redirect). What is that I'm doing wrong ? Can someone please help ?
Thank you.
If you are specifically looking for numbers, then I'd suggest:
RewriteRule ^([0-9]+)/?$ /shop/catalog.php?prodid=$1 [L]
RewriteRule ^foo\.html$ http://www.google.com/ [R=302,L]
I'm not sure if you've got all the required set-up lines in your code: You may need one or both of the following lines ahead of your rule:
Options +FollowSymLinks
RewriteEngine on