How can I redirect http to https?

Create an .htaccess file with the following contents and upload it to your public_html directory.

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://www.yourdomain.com/ [R]

  • 499 Users Found This Useful

Was this answer helpful?

Related Articles

Sub-Domain times out

When you add a sub-domain and it times out make sure you do not have redirection set from that...

Domain Slamming - Beware

There are several companies out there using a predatory practice of attempting to have you renew...

Enable AllowOverride

If you have an application that requires allowoverride enabled, create an .htaccess file and...

Can you write a script for me?

We do not write scripts but will be more than happy to guide you in the right direction. Most the...

Creating and Submitting a Google Sitemap

Creating a Google sitemap can be easy and beneficial. By using one, you are pushing a full list...