Edit htaccess file

This commit is contained in:
Paul Nicoué 2023-02-06 16:41:35 +01:00
parent 56246c9362
commit 2ca8a29b27

View file

@ -5,11 +5,11 @@
RewriteEngine on
# Block files and folders beginning with a dot, such as .git except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.html [L]
RewriteRule (^|/)\.(?!well-known\/) index.mjs [L]
# Make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.html [L]
RewriteRule ^(.*) index.mjs [L]
</IfModule>