Files
pfostendynamics.com/.htaccess
T
2020-11-07 13:00:50 +01:00

12 lines
350 B
ApacheConf

# mod_rewrite starts here
RewriteEngine on
# Prevent directory listings
Options All -Indexes
# does not apply to existing directories, meaning that if the folder exists on the server then don't change anything and don't run the Rule!
RewriteCond %{REQEUSTED_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]