Announcement

Collapse
No announcement yet.

Removing .html extension

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Removing .html extension

    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?



    Reverse Osmosis Water Filters

    #2
    Have you tried the "Bypass the cgi link in favour of a direct link" add-on at the bottom of https://www.graphicz.co.uk/drillpine-norman-rouxell.php

    Why do you want to do that?

    Comment

    Working...
    X