diff --git a/httpdocs/public/.htaccess b/httpdocs/public/.htaccess index 10d5150..26159cb 100644 --- a/httpdocs/public/.htaccess +++ b/httpdocs/public/.htaccess @@ -20,6 +20,9 @@ DirectoryIndex index.php + # 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] diff --git a/httpdocs/public/privacy.html b/httpdocs/public/static/privacy.html similarity index 100% rename from httpdocs/public/privacy.html rename to httpdocs/public/static/privacy.html diff --git a/httpdocs/public/support.html b/httpdocs/public/static/support.html similarity index 100% rename from httpdocs/public/support.html rename to httpdocs/public/static/support.html