: Redirect of www vs. "all works" I was asked a question from a friend if he should redirect his-domain.com to www.his-domain.com. I answered him that it seems more intuitive to just make both
I was asked a question from a friend if he should redirect his-domain.com to his-domain.com.
I answered him that it seems more intuitive to just make both work. So if you enter by his-domain.com you get to his-domain.com and if you enter his-domain.com you get to his-domain.com. This is what I do on my sites. I have an ServerAlias in my apache.conf file that says ServerAlias my-domain.com *.my-domain.com
But to my surprise,most major sites seems to take the redirect approach. Which I can understand if the sites are using SSL. But if they are not, I don't.
So are there any objective reasons to choose one instead of the other?
More nuanced edit
It would be nice if you read my question before closing it. But from the reactions I get I guess the answer could be something like:
"Don't make both domain.com and domain.com work side by side. Nobody does that. Just redirect one to the other".
Even if none is willing to give a technical answer to my question I would hope someone could have answered at least that instead of closing as a duplicate and refering to different question (which to some degree was related)
More posts by @Holmes151
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.