.htaccess has stopped working?
09-07-2017, 01:50 PM
(This post was last modified: 09-07-2017, 02:05 PM by tbrady85.)
I have SSL enabled on my Sentora installation for my panel and all of my websites. I also have my .htaccess setup so that all http requests forward to https. Everything has been working great since initially setting this up. As I matter of fact I logged into my panel yesterday to check my webmail. Outside of checking my webmail I haven't made any changes to my server or my Sentora install.
All of sudden, tonight, I go to log into my panel and I start receiving:
I checked the rest of my domains and now all of them are receiving this message.
I verified my .htaccess was being read by Apache by breaking it and receiving an Internal Server error.
Now I have two questions:
1. What can I do to correct this?
2. What could have caused this to happen without any interaction from me?
Here's what's in my .htaccess file (again this was working fine until today).
All of sudden, tonight, I go to log into my panel and I start receiving:
Code:
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Apache Server at panel.breeviate.com Port 443
I checked the rest of my domains and now all of them are receiving this message.
I verified my .htaccess was being read by Apache by breaking it and receiving an Internal Server error.
Now I have two questions:
1. What can I do to correct this?
2. What could have caused this to happen without any interaction from me?
Here's what's in my .htaccess file (again this was working fine until today).
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]