Add .htaccess file, configure it in angular.json
This commit is contained in:
parent
1643eecc48
commit
b75a08506f
|
@ -43,7 +43,8 @@
|
|||
"tsConfig": "src/tsconfig.app.json",
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/robots.txt"
|
||||
"src/robots.txt",
|
||||
"src/.htaccess"
|
||||
],
|
||||
"styles": [
|
||||
"src/mining.scss",
|
||||
|
|
|
@ -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