HTTP->HTTPS Redirect

Simply add this to the top of your .htaccess file.

RewriteEngine On

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

Was this answer helpful?

 Print this Article

Also Read

HTTP2 Support.

All sites hosted on Reliablewebsitehost can take advantage of HTTP2.More info here and a browser...

Domain Masking Made Easy

To redirect DomainA to DomainB while keeping DomainA in the address bar, create an index.htm with...


Firewall: Please note that our server has a firewall that will block IPs for various reasons.If...

SSH: How to access.

How do I connect to my server via SSH? We do not allow plaintext authentication. You must...

"Hosted By" code

Add before </body></html> tags.<div style="float:right; bottom: 0px; right:...