add .htaccess file
This commit is contained in:
parent
7315ffe445
commit
0219922fe5
|
@ -44,7 +44,8 @@
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/assets",
|
"src/assets",
|
||||||
"src/robots.txt",
|
"src/robots.txt",
|
||||||
"src/sitemap.xml"
|
"src/sitemap.xml",
|
||||||
|
"src/.htaccess"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"src/styles.css",
|
"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…
Reference in New Issue