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;"

  • 499 Users Found This Useful

Was this answer helpful?

Related Articles

I can not move out of the / directory. Why not?

For security reasons, you cannot move out of the root folder of your own domain.

Can I setup SSL on my account?

Yes, you can purchase a secure certificate through us so you can use SSL. You can also give us...

What are these .htaccess files that keep popping up?

.htaccess files are default files the server uses to perform certain tasks. Features such as...

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

Unable to view Ultrawebhosting.com from my foreign browser.

We are an American company based out of Seattle, WA. Our website is written in English as a...