Hi Everyone.
I have the follwing htaccess file working just great.
Basically it rewrites .php to .html and also rewrites none www. urls to www.
My question is how can is remove a directory from the .php to .html rewrite rule?
My pages are correctly being rewritten to .html files, but now my contact.php form has stopped working
Is it possible to remove or deny the .htaccess file for certain directories within my website.
Here is my htaccess file.
My contact form is located at mywebsite.com/contact/index.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mywebsite\.com [NC]
RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [L,R=301]
#Rewrite .php to .html
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} (.*)\.php
RewriteRule ^(.*)\.php $1.html [R=301,L]
RewriteCond %{THE_REQUEST} (.*)\.html
RewriteRule ^(.*)\.html $1.php [L]
Thanks in advance.