Hi all,
hope someone can advise. I want to remove the .html extension from all the website urls using something like the below in .htaccess
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
This works fine until you click the best seller or new products link which go via cgi-bin. Is there an add on or a workaround so it works for the whole site? or is this not possible to use when link are via cgi-bin?
hope someone can advise. I want to remove the .html extension from all the website urls using something like the below in .htaccess
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
This works fine until you click the best seller or new products link which go via cgi-bin. Is there an add on or a workaround so it works for the whole site? or is this not possible to use when link are via cgi-bin?