I don't know how direct .... but i want to how it possible to direct a website on https from http
Printable View
I don't know how direct .... but i want to how it possible to direct a website on https from http
Redirecting HTTP to HTTPS. Redirect All Web Traffic. If you have existing code in your .htaccess, add the following: Redirect Only a Specific Domain.
Depends on what web hosting server you are on. Usually your hosting control panel will have a option that you may choose from,
What happens when you do that is they modify your ht access file on your server. You can also do this yourself by inserting the following code...
Just make sure you have a ssl or auto ssl for your website as forcing a redirect with no valid certificate will give a self signed warning.Code:RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Also make sure all resources being called in your website are being called over https... somethings things like background urls wont change if they are absolute.
If you are using wordpress there are lots of plugins that will do this for you. Force https being one.
This is my problem. I had to use https instead of http. but this post was really useful and helped me. Thank you.