|
|
|
@@ -20,6 +20,9 @@ DirectoryIndex index.php |
|
|
|
</IfModule> |
|
|
|
|
|
|
|
<IfModule mod_rewrite.c> |
|
|
|
# Statische Dateien im /static/ Ordner komplett von Angular trennen |
|
|
|
RewriteRule ^static/ - [L] |
|
|
|
|
|
|
|
# Determine the RewriteBase automatically and set it as environment variable. |
|
|
|
# If you are using Apache aliases to do mass virtual hosting or installed the |
|
|
|
# project in a subdirectory, the base path will be prepended to allow proper |
|
|
|
@@ -34,12 +37,6 @@ DirectoryIndex index.php |
|
|
|
RewriteCond %{HTTP:Authorization} . |
|
|
|
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
|
|
|
|
|
|
|
# ERSTE PRIORITÄT: Statische HTML-Dateien (außer index.html) direkt ausliefern |
|
|
|
RewriteCond %{REQUEST_URI} \.(html)$ [NC] |
|
|
|
RewriteCond %{REQUEST_URI} !^/index\.html$ [NC] |
|
|
|
RewriteCond %{REQUEST_FILENAME} -f |
|
|
|
RewriteRule ^ - [L] |
|
|
|
|
|
|
|
# Authentication nur für Nicht-API und Nicht-statische-HTML-Requests |
|
|
|
RewriteCond %{REQUEST_URI} !^/api/ [NC] |
|
|
|
RewriteCond %{REQUEST_URI} !\.(html)$ [NC,OR] |
|
|
|
|