Mobile app version of vmapp.org
Login or Join
Holmes151

: 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

@Holmes151

Posted in: #Apache #Dns #Redirects

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)

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Holmes151

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme