mcmuney Posted July 2, 2009 Share Posted July 2, 2009 I'd like a rule that would redirect any page with .htm or .html to .php, for example: index.html will redirect to index.php privacy.htm will redirect to privacy.php Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/164548-rewrite-rule/ Share on other sites More sharing options...
rhodesa Posted July 2, 2009 Share Posted July 2, 2009 try: /(.*)\/.html? /$1.php [R] Quote Link to comment https://forums.phpfreaks.com/topic/164548-rewrite-rule/#findComment-867940 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.