Nielsen-Home-Improvements-LLC / .htaccess
.htaccess
Raw
# mod_rewrite starts here

RewriteEngine on

# Does not apply to exsisting directories, meaning that if the folder exsists on the server, then don't change anything and don't run the Rule!


RewriteCond %{REQUEST_FILENAME} !-d

# Check for file in directory with .html extension

RewriteCond %{REQUEST_FILENAME}\.html -f

#Here we show the page that has the .html extension

RewriteRule ^(.*)$ $1.html [NC, L]