How i could redirect my complete site to https?

If you really need all your site work through your SSL certificate (you must have a certificate installed already), add the following lines in your .htaccess file in your public_html directory, if the .htaccess file is not there, create it:

 

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

 

Replace "yourdomain.com" with your real domain name.



  • 0 Users Found This Useful
Was this answer helpful?
Related Articles
Copyright © 2020 PlusPlusHosting.Net. All Rights Reserved.
2Checkout.com is an authorized reseller of goods and services provided by PlusPlusHosting.Net.