giteshss2 Posted January 4, 2017 Posted January 4, 2017 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.orgWhenever I type: giteshshroti.heliohost.org, it establishes INSECURE CONNECTION - HTTPBut, 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!! Quote
wolstech Posted January 4, 2017 Posted January 4, 2017 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. Quote
bdistler Posted January 4, 2017 Posted January 4, 2017 with my Google Chrome browser when I enter URL [ http://giteshshroti.heliohost.org/ ]EDITI get sent to URL [ https://giteshshroti.heliohost.org/ ] Quote
wolstech Posted January 4, 2017 Posted January 4, 2017 with my Google Chrome browser when I enter URL [ http://giteshshroti.heliohost.org/ ]I get sent to URL [ https://giteshshroti.heliohost.org/ ]I get the plain HTTP in latest Chrome and Firefox unless I specify otherwise...do you have an extension like HTTPS Everywhere installed? Quote
bdistler Posted January 4, 2017 Posted January 4, 2017 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.