Control Web Panel

WebPanel => SSL => Topic started by: muhittin on September 29, 2015, 05:47:49 PM

Title: After Installed SSL how to open site automatic https?
Post by: muhittin 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?
Title: Re: After Installed SSL how to open site automatic https?
Post by: Igor S. 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]
Title: Re: After Installed SSL how to open site automatic https?
Post by: muhittin 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?
Title: Re: After Installed SSL how to open site automatic https?
Post by: muhittin 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