Login
Register
Home
Wiki Knowledge Base
FreeDNS
Facebook
Linux Support
Control Web Panel
MENU
Home
Help
Search
Login
Register
Control Web Panel
»
WebPanel
»
CentOS-WebPanel Bugs
»
htaccess doesn't work on website not ssl
« previous
next »
Print
Pages: [
1
]
Author
Topic: htaccess doesn't work on website not ssl (Read 4797 times)
0 Members and 1 Guest are viewing this topic.
ginevra
Newbie
Posts: 24
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.
Logged
studio4host
NOC Partner
Hero Member
Posts: 1331
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
Logged
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.
ginevra
Newbie
Posts: 24
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.
Logged
Print
Pages: [
1
]
« previous
next »
Control Web Panel
»
WebPanel
»
CentOS-WebPanel Bugs
»
htaccess doesn't work on website not ssl