@rusty.rosenbaum
To add a .html extension using .htaccess file, you can follow these steps:
- Create or locate the .htaccess file in the root directory of your website.
- Open the .htaccess file using a text editor.
- Add the following lines of code at the end of the .htaccess file:
RewriteEngine On
RewriteRule ^([^.]+)$ $1.html [NC,L]
- Save the changes to the .htaccess file and upload it to your web server.
- Now, any URL without a file extension will automatically be redirected to the corresponding .html URL.
Note: Make sure that the mod_rewrite module is enabled on your server for the above code to work.