Followup to my previous post...
To better illustrate what I meant in my last comment; one needs (in your case) to trap any request
that follows your
An example out of one of my domains configs:
Code: Select all
RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1 moved.php [R=301,L]
My example is slightly modified so as to appear closer to your intended target. I used this one to
better illustrate the
regex I was referring to in my last comment.
Another example that I use all the time, is "short hand" (why I use it all the time.)

Goes like this:
Code: Select all
Redirect 301 /oldfilename.php http://host.domain.tld/newfilename.php
Naturally, it isn't limited to file names. It can just as easily be filename > completely different domain.
Also note the omission of the regex.
Something I often find myself referring to for memory refreshment is a cheat-sheet. I'll (attempt) to attach
it to this post. With as many threads started over mod_rewrite. This attachment (or post) should probably
get "pinned". For quick-and-easy reference.
Well, here goes. Let's see if I can attach these goodies.
OK. It seems that I can't attach the mod_rewrite cheat sheet. I get an error message that the image
is too biig (in bytes). So I'll only be able to post the regex cheat sheet. I could compress it into an
archive so it is small enough. But archives are not an allowed attachment. Bummer.
Well. Hope this helps.
