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]

another method:

   RewriteEngine On
   RewriteCond %{HTTPS} !=on
   RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
   Header always set Content-Security-Policy "upgrade-insecure-requests;"

  • 503 Users Found This Useful

Was this answer helpful?

Related Articles

My index page does not load - Why not?

Filenames are case sensitive. Be sure you have an index filename all in lower case. Examples are...

Why is my account suspended?

Why is my account suspended? If you are receiving an account suspended page when trying to access...

osCommerce password reset

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

Point my domain to my wix account

How can I point my domain name to my wix.com account?To set this up you will want to login to...

403 Error on POST

This can occur for several reasons: Be sure your file permissions are correct. If the file needs...