Forum Moderators: phranque
ie http://www.example.net/download/
TO
ie http://www.example.com/download/product-name.html
Is this better to do with RedirectMatch 301
Here's what I've tried, though it doesn't work
RedirectMatch 301 /download/ http://www.example.com/download/product-name.html
I have been trying, but each time I try I end up redirecting all the pages in the folder.
Thanks
[edited by: jdMorgan at 8:37 pm (utc) on April 23, 2008]
[edit reason] example.com [/edit]
RedirectMatch 301 ^/download/$ http://www.example.com/download/product-name.html
For more information on regular expressions, see the tutorials cited in our forum charter, and also in our forum library (links at top of this page).
[added] Also, Redirect and RedirectMatch are processed by Apache mod_alias, not by mod_rewrite, so look for the directives' documentation under mod_alias instead. [/added]
Jim
[edited by: jdMorgan at 8:45 pm (utc) on April 23, 2008]