September 05,2022
On websites without SSL certificates, Chrome and Firefox have begun to display insecure warnings. Your website will appear unsecure to visitors if SSL is not installed. In order to ensure security, accessibility, or PCI compliance, an SSL-encrypted connection must be used. Making the switch from HTTP to HTTPS becomes crucial.
Edit the codes in the.htaccess file to make all of your web traffic use HTTPS. Here’s how to modify the.htaccess file before we discuss switching from HTTP to HTTPS. Skip to the Redirection stages if you are familiar.
The functionality of your website is directly impacted by the directives/instructions in the.htaccess file that inform the server what to do in specific circumstances. Ordinary directives in the.htaccess file:
Note: Backup your website in case something goes wrong.
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If you need still help then contact ChennaiHost – Best Web Hosting Company in Chennai Customer Support