Forum Moderators: phranque
i.e.
[tootle.com...]
should redirect to
[DOODLE.com...]
and
[tootle.com...]
should redirect to
[DOODLE.com...]
and so on for all the files ending in .html only
-----
I've had a look 'round for the right code, but found nothing useful, and I'm not smart enough to work it out.
-----
RedirectMatch 301 ^sub-directory/([a-zA-Z0-9\-]+).html$ [example.com...] [L]
added: this will catch any file with a name using the characters a-z,A-Z and hyphen(-)
Try this instead:
RedirectMatch 301 ^sub-directory/([^.]+).html$ http://example.com/sub-directory/$1.html
Jim