Hi everyone,
I've been working to redirect my domain via .htaccess, though I'm having an issue.
Basically I'm looking to redirect:
example.com
www.example.com
http://www.example.com
http://example.com
https://example.com
to:
https://www.example.com
I've tried the solutions I've found on the forum and elsewhere on the net, but I can't get all to work. I've found some calls that work for http and another for https, but none that cover all of them. Ideally, I'd also like the redirect to preserve a file or directory, for example:
http://example.com/file (and all the permutations listed above)
to:
https://www.example.com/file
I'd greatly appreciate any help, thanks!
jesta