Újévi ajánlat 82% LEÁRAZÁS
00
NAP
11
ÓRA
45
PERC
28
MÁSODPERC

How can I redirect my HTTP site to HTTPS?

Módosítva:
redirect http https force https ssl

Even though You have an SSL certificate for Your website, your visitors will not use HTTPS while accessing your website by default.

You can simply add the following code to your .htaccess file, which is in your public_html folder, in order to force HTTPS:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example1\.com [NC]

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Just don't forget to change the "example1" to your domain name.

We have a great tutorial about this here - How to Force HTTPS

IMPORTANT: If you do not have a valid SSL certificate installed, your website can become inaccessible due to this redirection. Make sure to verify your SSL is properly setup on your account by manually accessing your website with https:// to see if it works.

  • Végtelen Számú honlap
  • Állandó Élő Támogatás
  • Egyszerű Honlapszerkesztő
  • 2X WordPress Optimalizált
  • 30 napos pénzvisszafizetési garancia
Kapja el az ajánlatot, amely csak korlátozott ideig érvényes!
Már
335
Ft
/hó
Save 82%
Kezdjen bele