Exporting from webflog adds .html to the url in the address bar

I have a webflow exported site that I have copied over to WP Shared hosting. The exported site has .html links.

I added the following segment to my .htaccess file

RewriteEngine On
RewriteBase /

Options +FollowSymLinks
#domain-name.com/page will display the contents of domain-name.com/page.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+)$ $1.html [L,QSA]

#301 from domain-name.com/page.html to domain-name.com/page
RewriteCond %{THE_REQUEST} [1]{3,9}\ /..html\ HTTP/
RewriteRule ^(.
).html$ /$1 [R=301,L]

#301 from folders (this allows for changing folders to paths
#EXAMPLE
#RedirectMatch 301 ^/projects/index.html /our-work.html

Is there any change that needs to be done to the .html files on Web flow side or am I supposed to use the .html as is. With the above I see that the url is showing up without the .html but the page does not load as it does not exist
Is there any other change to be done

Can some assist on how to remove the .html from the exported webflow files. Do links in all the files to be altered to without .html?


  1. A-Z ↩︎