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

Do you have a firewall?

Yes, our servers have firewalls. For security we close off unused ports and update the server...

How do I remove a web disk?

In Windows, go to My Network Places on your PC, find the connection, right click and delete....

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...

Can I change my username?

Usernames are setup in the manner for security. Most programs will allow you to save the...

My pages are updating/refreshing slowly

Refresh is immediate on the server. When a file is updated and uploaded it is there. If you are...