I'm pretty green with mod_rewrite. I've got the first line of this working like a champ, but the second part refuses to cooperate
RewriteRule ^(.*).html$ $1.php
RewriteRule ^(.*).shtml$ $1.php [R=301,L]
The .shtml
part fails wonderfully and 404s - without my custom 404 page. Should this be combined in to one rule? Should I quit my job and let them hire a monkey to replace me? has anyone got a solution for this?
Thanks!