Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Issue :

When someone tries to access the site through the insecure URL (http) , it should redirect ( to https ) automatically.

Fix :

This can be easily achieved by putting the following code in the .htaccess file under ‘public_html’ folder :

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.yourdomainname.tld/$1 [L,R]

(Assuming that you have SSL installed on the domain 😉 )


Shares
Contact Us On WhatsApp