Hi all -
Here’s the situation:
I just overhauled a site for my company, and in so doing renamed many of their pages from “casepage.htm” to “index.htm”.
These “casepage.htm” files were all located in a separate directory, and their path to the root looked like this:
/cases/some_case/casepage.htm
So the new paths look like this:
/cases/some_case/index.htm
What I want to do is set a rule in my htaccess file that says “for all pages that used to be named casepage.htm, the new file is called index.htm and is found in the directory where casepage.htm used to be located.”
I could set up individual redirects that look like this:
Redirect permanent /cases/some_case/casepage.htm /cases/some_case/index.htm
But I’ve got more than 150 individual directories that fit this scenario, and it just seems like there has to be a way to do this with a single htaccess command.
Any ideas?
Thanks in advance for your help!
Matt