Currently my web site shows the same data if people go to domain.com or www.domain.com.
I would like to set up a redirect so all requests to domain.com will get sent onto www.domain.com. So a user who goes to domain.com will get redirected to www.domain.com. Just like what happens if you go to http://amazon.com/?a=b
I don't want to lose or corrupt any GET or POST data that is sent in the domain.com request.
What is the best way to do this? Should I use a 301 redirect? Will this cause the user's browser to re-send GET/POST data to the www.domain.com URL?
[EDIT] Ok, Zaagmans says redirecting POST transparently to the user is not possible. So lets ignore POST for the moment. How should I redirect with just query string data?