Step by step instructions to divert HTTP movement to HTTPS utilizing a .htaccess document

Step by step instructions to divert HTTP movement to HTTPS utilizing a .htaccess document

Sharing is caring!

http to https

we all need to secure our system from spam and thefts specially to protect our domain like ( https://zeroskip.com ) and get authorize for google searching and ranking this is one of the important and mandatory method to do before getting forward and you have already taken SSL Certificate.

so below i have code that you have to paste in your .htaccess file

 

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Leave a Comment