Have you just installed SSL certificate, but now you need to figure out how to redirect http to https. So no matter what the user puts in the browser, it always redirects to HTTPS?
In this video I’ll show you how to do this easily with any hosting provider, as long as you have access to the file manager or FTP.
We will be using .htaccess file, so this will work even if you have wordpress, or you are using cpanel in godaddy or hostgator, this will work everywhere!
For this to work you need to have apache server, which is most common type of server.
In case you are looking for a video how to install SSL sertificate in first place, here is a video: • Video
what is HTTPS? • What is https? HTTPS deninition explained
Code snippet:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Alright, I have a website where I’ve just installed SSL certificate. Currently it only works if the user types in https. However we want redirect all traffic from http to https.
This is easily achieved with a little bit of code in your .htaccess file.
Go to your Cpanel, or use file manager, or ftp, whatever way you can get to the root folder of your domain.
Let’s create a new file called .htaccess, in my case, I actually already have it, so I’m going to open it up in code edit view.
I have also, some other code in the file, but you can ignore it. After the code just place these 3 lines. I’m going to add this code snippet to the description, so you can just copy paste it.
Then save the file, and now if you refresh your site using http, it should redirect automatically to https.
Post on my website: https://punchsalad.com/ssl-certificat...
En esta página del sitio puede ver el video en línea Redirect http to https using .htaccess file (works with WordPress) de Duración hora minuto segunda en buena calidad , que subió el usuario Clicks to Clients 09 abril 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 31,603 veces y le gustó 513 a los espectadores. Disfruta viendo!