tom2
3
Hi @wolfganghofer
I create a htaccess file and use this code. Works for me …
#Rewrite Rules
RewriteEngine on
#Remove the html extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
#Restrict access to .htaccess and hidden files
RewriteRule “(^|/).” - [F]
I found that code in this thread:
tom
1 Like