Streaming live at 10am (PST)

Hiding html extension on exported site, even when the url contains .html


I would like to completely hide .html extension from my exported Webflow site.

I’ve added this code below into .htaccess file in the root of my ftp folder and it allows me to access links like

However if I am accessing a url which contains html like contact.html , the extension is not hidden. Webflow assigns full path by default to all nav links, so I need an automated way.

Any luck? Thanks!

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]

Search and replace the .html extension inside your html files is the best method.