Simple .htaccess rewrite rule

ARUN Post in HTACCESS
0

A simple .htaccess rule to test the redirect

Solution :  http://admin.webhostingdevelopment.com/viewtopic.php?f=83&t=72#p83

How to rewrite all the .htm requests to .php

RewriteEngine onRewriteCond %{THE_REQUEST} ^GET\s(.+)\.php [NC]
RewriteRule ^ %1.htm [R=301,L]RewriteRule ^(.*)\.htm$ /$1.php [L,NC]

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.