Hello Friends,
This post is regarding SSL for the domain having SSL certificate.
If you have purchased SSL certificate for your site and wants to redirect the site to https, you need to set the redirection from your control panel or you can do this by adding some code in .htaccess file. You can add one of the two codes written here.
============
RewriteEngine on
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.domain.com%{REQUEST_URI} [R=301,L,NE]
OR
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
============
Once you change the URL of the site from http to https, the site will not properly. All the tabs and the images that are present in your site will not load in a proper manner. This is because, your site is now loading from https protocol, however the code of the page that loads, still contains http URLs.
To fix this, you need to change the URL from http to https in all your pages. You may also contact your developer to it.
If you have a WordPress site, you can download the plugin “Search & Replace” and then you can change the URLs easily.
This will fix the issue with the page overview.
If you have any query, feel free to comment on this post.
Thank you! 🙂
My name is Shashank Shekhar. I am a DevOps Engineer, currently working in one of the best companies in India. I am having around 5 years of experience in Linux Server Administration and DevOps tools.
I love to work in Linux environment & love learning new things.
Powered by Facebook Comments
Leave a Reply