Streaming live at 10am (PST)

Exporting websites adds .html to the url

Hey guys,

I’v just finnished my very first website on Webflow. I want to host it on another hosting provider but when i export the website and upload the files the url’s of the websites add .html on the end. now i’v looked on the internet and people have been creating .htaccess files to remove it but it did not work for me.

anyone know how to resolve this issue?

kind regards,

Thats what you do when hosting on an apache server and your host allows for overrides.

I am not really familiar with those terms,
Hosting is not really my strongest,

is .htaccess the only way to solve this problem? or are there more?
what are my options here.

kind regards

If you are on an apache server yes.

the hosting provider use apache so yes, i want to use .htaccess but i tried alot of different codes but none worked. im not a coder so, how can i fix this?

i have tried countless codes like :

RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ $1.html [NC,L]

but none of them work

This should work.

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

unfortunately it did not work

Well you should determine if you host allows overrides and contact them for support.

yea they do because i used other codes that worked. but i emailed them, hope they come with a solutions. thank you anyway for your time