Forum Moderators: phranque
This is to catch users typing file.htm and redirect them to file.html. If file.html doesn't exist then the normal 404 is desired.
I started with this rule:
RewriteRule ^(.*\.htm)$ $1l [R=301,NC,L]
But since this doesn't work the way I'd hoped, I could use a pointer, if anyone will be so kind.
Regards,
Matt
Gahhh....
I must have been asleep. I need to specify the full url or the site root for the output.
RewriteRule ^(.*\.htm)$ /$1l [R=301,NC,L] RewriteRule ^(.*\.htm)$ http://www.adomain.com/$1l [R=301,NC,L] Comments, still welcome, if there is the need.
[edited by: MattyUK at 6:57 pm (utc) on Mar. 15, 2007]