Author Topic: After Installed SSL how to open site automatic https?  (Read 8630 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
After Installed SSL how to open site automatic https?
« on: September 29, 2015, 05:47:49 PM »
i installed purchase SSL it is working, no problem. But my site not open automatic https://www.mysite.tls. only manual type https://www.mysite.tls
how i setup my site open automatic https?
Wants $10 bonus for FREE on VPS DigitalOcean

https://www.digitalocean.com/?refcode=4f7603c80195
-----------------------------------------------

Offline
*****
Re: After Installed SSL how to open site automatic https?
« Reply #1 on: September 30, 2015, 03:22:32 PM »
Hi.

You can using some redirect in .htaccess file.
Something like:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: After Installed SSL how to open site automatic https?
« Reply #2 on: October 01, 2015, 12:32:56 PM »
Thank you Igor for your answer.
i try your answer on my public_html/.htaccess file and  public_html/mydomain.com/.htaccess  but my problem not solved.
i am using drupal this domain, is drupal problem for this my issue?
have you another solve?
Wants $10 bonus for FREE on VPS DigitalOcean

https://www.digitalocean.com/?refcode=4f7603c80195
-----------------------------------------------

Offline
*
Re: After Installed SSL how to open site automatic https?
« Reply #3 on: October 01, 2015, 01:12:26 PM »
i am solved problem  ;)

write this in .htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ https://www.yourdomain.com%{REQUEST_URI} [NS,R,L]

thank you Igor S, your answer is more helpfull me
all is that. good luck
Wants $10 bonus for FREE on VPS DigitalOcean

https://www.digitalocean.com/?refcode=4f7603c80195
-----------------------------------------------