- Adiciona condição X-Forwarded-Proto para evitar redirecionamento infinito em ambientes com proxy SSL.
11 lines
No EOL
295 B
ApacheConf
11 lines
No EOL
295 B
ApacheConf
RewriteEngine on
|
|
RewriteCond %{HTTPS} off
|
|
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
|
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
DirectoryIndex index.php
|
|
|
|
#Determina o timezone
|
|
php_value date.timezone "America/Sao_Paulo"
|
|
|
|
#Redirecionamento
|
|
RewriteRule ^home$ index.php |