I am using the following code to remove the .html suffix and would like to exclude it for my /billing directory. How can I do this?
All the files in my /billing directory have the .php extension
RewriteRule ^([^\.]+)$ $1.html [NC,L]
I am using the following code to remove the .html suffix and would like to exclude it for my /billing directory. How can I do this?
All the files in my /billing directory have the .php extension
RewriteRule ^([^\.]+)$ $1.html [NC,L]
You can add a RewriteCond that excludes the rule in the billing directory:
RewriteCond %{REQUEST_URI} !^/billing/
RewriteRule ^([^\.]+)$ $1.html [NC,L]