fix: Corrige loop de redirecionamento no .htaccess
- Adiciona condição X-Forwarded-Proto para evitar redirecionamento infinito em ambientes com proxy SSL.
This commit is contained in:
parent
f51097e3ab
commit
3651d541ef
1 changed files with 1 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
RewriteEngine on
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
DirectoryIndex index.php
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue