How do I auto-redirect HTTP to HTTPS (SSL)?

To auto redirect from http to https (SSL) in Apache, add the following code to the top level .htaccess file...

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Was this answer helpful?

Also Read
Can I switch between PHP-4 and PHP-5?

Yes, you can easily switch between PHP-4 & PHP-5 anytime you wish. To see how, see the...

What's the Hostname & Port for MySQL?

When configuring any of your scripts on the server, use the following connection info to...

Do you support GD & ImageMagick?

Yes, we do support GD & ImageMagick modules.The module-binaries are located in under this...

Do you have Linux or Windows servers?

All servers at GigaPros run on CentOS Linux. All servers use high performance Intel(R) Xeon(R) 24...

How do I create an Addon Domain?

An Addon Domain is similar to a subdomain and created in much the same way. An Addon Domain has...