How do I setup any URL/URI for
to end up at the corresponding:
I'm guessing that the solution (if there is one), will involve DNS settings and
.htaccess voodoo. But I don't really understand how those things work (particularly
.htaccess). So, some specific suggestions on what to read would also be appreciated. (Yes, I can google, but this seems to be a rather specific and/or esoteric question, and I have been unsuccessful in effecting a solution. Or, I could be stupid...)
I have domains
.com all registered with the same registrar. Via the registrar's domain settings, I have
.org setup to redirect (301) to
example.com. I have
example.com hosted at a separate shared hosting company that uses Apache & cPanel.
Currently, some redirects work:
http://(with or without www).example.(net/org) =>
http://www.example.com does not redirect to just
Now for the tricky part. The web host also has "SNI based SSL". So,
https://www.example.com both work, but, with https, the www URL does not redirect to the base domain (
https://example.net does not work either, with or without the www (won't connect/times out).
So, in short (too late??), if possible, how do I configure all permutations of the above to end up at the corresponding:
Or, if the answer would require the completion of a doctoral thesis to implement, what is a common/reasonable setup?