Jump to content

Recommended Posts

Posted

Greetings!

 

I have my own SSL Certificate and have registered me domain with it too.

 

BUT,

Whenever i open my website in the web browser, this happens:

  • My domain name is giteshshroti.heliohost.org
  • Whenever I type: giteshshroti.heliohost.org, it establishes INSECURE CONNECTION - HTTP
  • But, when i EXPLICITLY enter: https://giteshshroti.heliohost.org, A SECURE CONNECTION IS ESTABLISHED. i.e. HTTPS.

 

Now the problem is, i dont wanna specify https:// all the time. But still want that even when i enter giteshshroti.heliohost.org, IT MUST ESTABLISH SECURE CONNECTION.

Please guide me!!

Posted

You'll need to use an .htaccess file or a script to redirect your users if you don't want them using the insecure version. Something like this would work:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

You can put this in the .htaccess file in public_html to redirect everybody visiting your domain (create file if it doesn't exist). Be sure to replace www.example.com with your domain.

 

The default behavior to allow both types of connections is by design.

Posted

I get the plain HTTP in latest Chrome and Firefox unless I specify otherwise...do you have an extension like HTTPS Everywhere installed?

no

Chrome is ver Version 55.0.2883.87 (64-bit) on Ubuntu 16.04 LTS

 

update -- must of had that stuck in a cache - just did a retry no redirect now

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...