FlorianEisenmenger 8 месяцев назад
Родитель
Сommit
0b381fd271
3 измененных файлов: 3 добавлений и 6 удалений
  1. +3
    -6
      httpdocs/public/.htaccess
  2. +0
    -0
      httpdocs/public/static/privacy.html
  3. +0
    -0
      httpdocs/public/static/support.html

+ 3
- 6
httpdocs/public/.htaccess Просмотреть файл

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


httpdocs/public/privacy.html → httpdocs/public/static/privacy.html Просмотреть файл


httpdocs/public/support.html → httpdocs/public/static/support.html Просмотреть файл


Загрузка…
Отмена
Сохранить