After Installed SSL how to open site automatic https?

Started by muhittin, September 29, 2015, 05:47:49 PM

Previous topic - Next topic

muhittin

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

Igor S.

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

muhittin

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

muhittin

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