I've got an ssl cert installed for my domain example.com and I want all non-https requests to automatically go to the https. I've got it sorta working .. it redirects but gives me this error page:
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.
Hint: https://example.com/
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Is there a right way to handle this?