This commit is contained in:
2026-05-20 13:30:10 +02:00
parent bc5cae7e82
commit 22c886b8f4
20 changed files with 1154 additions and 7 deletions

View File

@@ -1,4 +1,17 @@
RewriteEngine on
RewriteEngine on
# Fix ERR_TOO_MANY_REDIRECTS on /Admin (2026-05-20).
# Two-layer guard:
# (1) Force HTTPS for any /Admin/* request - prevents the http<->https oscillation
# with PHP app that always emits https Location: headers.
# (2) Intercept /Admin (with or without trailing slash) BEFORE mod_dir issues a
# directory-slash 301 (which on this host degrades https->http, looping).
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule ^Admin(/.*)?$ https://%{HTTP_HOST}/Admin$1 [R=301,L]
RewriteRule ^Admin/?$ Admin/index.php [L]
RewriteCond %{REQUEST_URI} !phpmyadmin
RewriteCond %{REQUEST_URI} !szablon
RewriteCond %{REQUEST_URI} !crossdomain.xml