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

15 lines
424 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]
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]