Jump to content

Recommended Posts


  • Administration
Posted
Em 11/10/2021 em 13:24, andre bento disse:

Tem alguma configuração que eu possa fazer na minha vps/whm para que preferencialmente todos os sites sejam abertos em https???

Se você tiver usando cPanel o mesmo já tem uma ferramenta lá no painel que faz isso.
Basta clicar em Dominios -> e terá um botão para forçar o SSL.

 

msedge_kqb7WG3B1w.png.ed34c54d18a40e72f16b288121d7f308.png

 

Ou adicionar no .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-SSL} !on
</IfModule>
# END WordPress

 

Eu sou a existência que vocês chamam de "mundo". Ou talvez "universo", ou talvez "Deus", ou talvez "verdade", ou talvez "tudo", ou talvez "um".

Posted
# Aplicar regras HSL
<ifModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
</ifModule>

 

# Força HTTPS
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^webmail\.DOMÍNIO\.com\.br$ [NC]

 

 

DELTA SERVERS
SOLUÇÕES CORPORATIVAS!

Posted

@andre bento

Terá de forçar todas as solicitações sem SSL, criando uma regra mod_rewrite:
https://documentation.cpanel.net/display/EA4/Modify+Apache+Virtual+Hosts+with+Include+Files

Não recomendo criar esse tipo  de force, em escala provavelmente não será algo econômico  ou seu cliente pode por algum plugin ou até mesmo o htaccess e refazer um force, e por fim poderá ter problemas de redirecionamento excessivo. 

FOX SOLUÇÕESTransforme problemas em soluções | www.foxsolucoes.com
-> Gerenciamento Linux especializado para quem não pode parar.
-> Consultoria, otimização e operação completa de ambientes VPS, dedicados e cloud.

Posted
Em 12/10/2021 em 12:26, Otavio disse:

@andre bento

Terá de forçar todas as solicitações sem SSL, criando uma regra mod_rewrite:
https://documentation.cpanel.net/display/EA4/Modify+Apache+Virtual+Hosts+with+Include+Files

Não recomendo criar esse tipo esse tipo de force  em escala pode não ser algo muito econômico ou seu cliente pode por algum plugin ou até mesmo o htaccess e refazer um force, no fim poderá ter problemas de redirecionamento excessivo. 

show obrigado.

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?

-