A couple months ago I rewrote a small sub-site of mine.
Originally I had simple static pages that are still being linked to from quite a few sources. I’ve written a ‘catch-all’ rule so that the old, now-incorrect URLs at least reach the site home without erroring.
What I’ve tried several times to do is create specific rules to redirect from the static page to the new database-driven page.
I can’t seem to get the string match to work and the page-specific rules are being skipped.
For example, I have:
Redirect /Harrington/hh_shrikes_and_ferrets_are_not_fighters.htm http://infodump.thefifthimperium.com/entry/Harrington/138/1/ [L]
To make matters worse, the old site also had a generic script to strip out styling and scripts, so you could also see that same page being requested as:
I’ve been trying to figure out how to match the substring ‘hh_shrikes_and_ferrets_are_not_fighters’, without the file extension and redirecting to the new page.
Even better would be a way to also match the presence of the ‘pagenocss.php’ script and set a switch on the target URL (the trailing /1/ would become a trailing /0/ for a script-/style-free version of the same page).
Thanks for any help you might be able to provide.