The website I work on had these two pages in the past:
(These are not actual domain names, just examples.)
The directory structure had been recently reorganized, and the URLs for the same pages changed to:
I want a mod_rewrite rule (or a less resource-consuming alternative method, such as Redirect command or something similar) to benefit those enthusiasts who had both pages bookmarked with old URLs. I need this to work for both http//www.africananimals.com and http//africananimals.com/ versions of the URLs.
My solution would be this:
Redirect /stripes/zebras http://www.africananimals.com/zebras/stripes Redirect /news/zebras http://www.africananimals.com/zebras/news
– but I'm not sure if I'm correct. Being awful at regex, and having only superficial understanding of .htaccess, I'd sure be grateful for some guidance.