leopkks Posted August 12, 2019 Posted August 12, 2019 (edited) Alguém poderia me ajudar adicionar https nesse código por favor. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php?/$0 [PT,L] <Files ~ "^.*\.([Pp][Hh][Pp])"> #PHP protection Order Deny,Allow Deny from all </Files> <Files index.php> Order Allow,Deny Allow from all </Files> Edited August 12, 2019 by leopkks 0 Quote
Jaime Silva Posted August 12, 2019 Posted August 12, 2019 RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Se usar Cloudflare, e ficar em loop após adicionar o código acima, tente este: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Você deve colocar o texto logo no começo do arquivo .htaccess 0 Quote Não há bem nem mal que dure para sempre. Um dia tudo acaba.
leopkks Posted August 14, 2019 Author Posted August 14, 2019 Em 12/08/2019 em 8:52 AM, Jaime Silva disse: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Se usar Cloudflare, e ficar em loop após adicionar o código acima, tente este: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Você deve colocar o texto logo no começo do arquivo .htaccess Não funcionou direito estou usando o ez-inboxer 0 Quote
Thiago Sabaia Posted August 14, 2019 Posted August 14, 2019 10 horas atrás, leopkks disse: Não funcionou direito estou usando o ez-inboxer RewriteEngine On RewriteBase / Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^seusite.com.br [NC] RewriteRule ^(.*)$ https://www.seusite.com.br/$1 [R=301,L] Como você já tem um .htaccess tome cuidado para não repetir a linha RewriteEngine on 0 Quote thiagosabaia.net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.