update
This commit is contained in:
15
.htaccess
15
.htaccess
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user