paulnicoue/public/.htaccess

16 lines
493 B
ApacheConf
Raw Permalink Normal View History

2022-12-08 18:01:27 +01:00
# Rewrite rules
<IfModule mod_rewrite.c>
# Enable awesome urls. i.e.: http://yourdomain.com/about-us/team
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
2023-02-06 16:41:35 +01:00
RewriteRule (^|/)\.(?!well-known\/) index.mjs [L]
2022-12-08 18:01:27 +01:00
# Make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
2023-02-06 16:41:35 +01:00
RewriteRule ^(.*) index.mjs [L]
2022-12-08 18:01:27 +01:00
</IfModule>