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

osCommerce password reset

How to reset your osCommerce admin login... You can reset your osCommerce administrative login...

Your connection to this server has been blocked at the firewall.

If you receive the message: "Your connection to this server has been blocked at the firewall. If...

What are some tools are available to optimize my website?

There are many great tools to optimize your website. There is an optimize tool in your hosting...

View your website in older browser versions.

As developers and webmasters it is always important to make sure your website works in several...

When I upload an .htaccess file it disappears.

On unix/linux systems, files that start with a . are considered hidden so many ftp programs do...