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] + +