Add .htaccess file, configure it in angular.json

This commit is contained in:
argirok 2022-08-02 17:06:31 +03:00
parent 1643eecc48
commit b75a08506f
2 changed files with 12 additions and 1 deletions

View File

@ -43,7 +43,8 @@
"tsConfig": "src/tsconfig.app.json", "tsConfig": "src/tsconfig.app.json",
"assets": [ "assets": [
"src/assets", "src/assets",
"src/robots.txt" "src/robots.txt",
"src/.htaccess"
], ],
"styles": [ "styles": [
"src/mining.scss", "src/mining.scss",

10
src/.htaccess Normal file
View File

@ -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