.htaccess extension removal


I am trying to remove the .html extentions from my site. I have searched the forums and it seems there is still massive confusion about how to do this which is why I am starting a new thread.

In webflow I cannot create folders and give them index (slug) files as it says that the slug is reserved.

If I add the following code in .htaccess it allows for the page to be access without the .html access however my question is - Is this making a second duplicate? Also, will I have to adjust all my links in webflow to point to just the names and not the .html selectors?

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

Does anyone have info on this? Furthermore, how do I get ride of an internal 500 servor error and have it redirect to the 404 page

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.