When on Webflow hosting, I’m referring to internal pages as ‘/pagename’ which works perfectly fine.
After exporting the code, though, all the links automatically change to ‘pagename.html’ which looks unprofessional when hosting externally.
Hey @denisbondar. I believe you can do this by creating an .htaccess file.
Open Notepad and paste the following code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
Save the file as “.htaccess” without the quotes.
Upload to your public_html folder at your host and rename your page files to remove the “.html”.
.htaccess is not ideal solution in my case, as I’m using Gituhb Pages, which only supports static content (so .htaccess won’t work there)
Any ideas on 1) how to prevent Webflow from adding ‘.html’ to the links (in the process of export) in first place?; or 2) how to automatically remove/replace ‘.html’ part from the body of html document on load to avoid removing it manually?