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

How can I make search engine friendly urls with my app?

The best source is the support forums for the particular app. You can also check the following...

What perl modules are installed on the server?

You can get a complete list of the modules that are installed by going to the control panel and...

How do I submit my site to search engines?

Submit your website to popular search engines to increase your webite's exposure and visitor...

Do you have a firewall?

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

Why can I not ping my domain?

For security purposes we have closed off the ICMP port which is used for ping.