Jump to content

Https Not Working!


giteshss2

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...