add .htaccess file

master
argirok 2 years ago
parent be8bf6f237
commit 3dca2f9683

@ -44,7 +44,8 @@
"assets": [
"src/assets",
"src/robots.txt",
"src/sitemap.xml"
"src/sitemap.xml",
"src/.htaccess"
],
"styles": [
"src/styles.css",

@ -0,0 +1,10 @@
RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteRule ^ ./index.html
Loading…
Cancel
Save