Issue with www to non www redirect

Posted by bob on Server Fault See other posts from Server Fault or by bob
Published on 2010-06-04T23:55:29Z Indexed on 2010/06/06 22:42 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

Hello,

I am on slicehost and I followed the articles that they gave for DNS redirection and the www to non www url redirection does work.

However, what if I want a www.domain.com to be the default domain. Would I put www.domain.com. as my DNS record name or would I keep domain.com. as my DNS record and then do something else.

Basically, what happens is if someone goes to the url www.domain.com/directory/something.html

they will be redirected to domain.com and not domain.com/directory/something.html

I would like the second thing to happen, not just go to domain.com and call it a day. I am running nginx and am confounded on how to solve this issue. I'm not sure whether its an nginx issue or a dns issue.

Any help would be greatly appreciated!

© Server Fault or respective owner

Related posts about dns

Related posts about domain