Author Topic: htaccess doesn't work on website not ssl  (Read 4814 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
htaccess doesn't work on website not ssl
« 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.

Offline
*
Re: htaccess doesn't work on website not ssl
« Reply #1 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
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: htaccess doesn't work on website not ssl
« Reply #2 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.