ソースを参照

htaccess

master
FlorianEisenmenger 8ヶ月前
コミット
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 ファイルの表示


読み込み中…
キャンセル
保存