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!!
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.
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/ ]
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?
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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now