Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: ginevra on February 12, 2019, 11:44:49 AM

Title: htaccess doesn't work on website not ssl
Post by: ginevra on February 12, 2019, 11:44:49 AM
Web sites without a ssl certificate directly visiting the SSL URL, instead of redirecting the traffic on the http protocol shows the server default page. I try many ways with htaccess , rebuilt whost, restart apache but it does not work.
Title: Re: htaccess doesn't work on website not ssl
Post by: studio4host on February 12, 2019, 09:48:58 PM
if you use nginx then you should use nginx vhost template for that domain which has in name "force https redirect"

You can change that template for particular domain from "Webservers Domain conf" in the admin menu
Title: Re: htaccess doesn't work on website not ssl
Post by: ginevra on February 12, 2019, 09:58:54 PM
Hello, thanks for your reply. I use only apache. I don't want redirect all traffic on https but on http if the domain not have certificate installed. I have many websites ssl and not. If I try to open https url on domain without certificate, it show default server page. I need then a redirect from https to http only for domains without certificate.