Board index MISCELLANEOUS HTACCESS RELATED

Simple .htaccess rewrite rules

Postby a24uall » Fri Oct 26, 2012 4:16 pm

How to rewrite all the .htm requests to .php

RewriteEngine on

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

RewriteRule ^(.*)\.htm$ /$1.php [L,NC]
Arun
WebhostingDevelopment.com
a24uall
Site Admin
 
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

Return to HTACCESS RELATED

Who is online

Users browsing this forum: No registered users and 1 guest


cron