瀏覽代碼

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 查看文件


Loading…
取消
儲存