From 7e603c9afa1e855a84b877c09cf9d87b57401e0d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 6 Oct 2021 12:10:49 +0200 Subject: [PATCH] Added htaccess as asset --- angular.json | 3 ++- projects/speech-statistics/src/.htaccess | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 projects/speech-statistics/src/.htaccess diff --git a/angular.json b/angular.json index 099a806..a47b4e9 100644 --- a/angular.json +++ b/angular.json @@ -28,7 +28,8 @@ "inlineStyleLanguage": "scss", "assets": [ "projects/speech-statistics/src/favicon.ico", - "projects/speech-statistics/src/assets" + "projects/speech-statistics/src/assets", + "projects/speech-statistics/src/.htaccess" ], "styles": [ "./node_modules/bootstrap/dist/css/bootstrap.min.css", diff --git a/projects/speech-statistics/src/.htaccess b/projects/speech-statistics/src/.htaccess new file mode 100644 index 0000000..ad0fe75 --- /dev/null +++ b/projects/speech-statistics/src/.htaccess @@ -0,0 +1,8 @@ +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 ^ /speech-statistics/index.html