Streaming live at 10am (PST)

Removing .html from exported code


Wondering if there is an easier way to remove the .html extension from the URL other than the method I have found

A video is telling me to write the following into the .htaccess file and then remove .html from the links

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

It works. Although, it seems I would have to manually go through the exported code and find all of the links and remove the .html one by one. It would be great if any one knew of an alternative way to do this. is the website I am trying to fix

Thank you!

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Use a code/text editor that supports find in files to do a search and replace across all your pages on your local disk like in Visual StudIo Code.

1 Like

Fixed it, thank you!