Jump to content

Recommended Posts

Posted (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 by leopkks

Posted
    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 há bem nem mal que dure para sempre. Um dia tudo acaba.

Posted
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

Posted
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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?

-