From 8dadf92e8a714cb46e6116218d8e5569e4221f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Nicou=C3=A9?= Date: Thu, 8 Dec 2022 18:01:27 +0100 Subject: [PATCH] Add htaccess file --- public/.htaccess | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 public/.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..adb7d9c --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,15 @@ +# Rewrite rules + + + # 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 + RewriteRule (^|/)\.(?!well-known\/) index.html [L] + + # Make site links work + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*) index.html [L] + +