den simple (f.eks. i "toppen" af din masterpage)
If (Request.ServerVariables("server_name") == "
www.detdummesite.dk" || Request.ServerVariables("server_name") == detdummesite.dk (osv osv) )
{
Response.StatusCode="301";
Response.Redirect("
http://www.detgodesite.dk/", true);
}
Hvis du har "gamle" link liggende på google skal du jo også sørge for at tage url og querystring med ;o)
status 301 har "intet"(direkte) at gøre med seo, det fortæller som arne skriver klienten at der ikke er noget der hedder mitsite.dk mere men nu er det samme "indhold" på
www.mitsite.dk (og klienten (google eller en browser) bør/skal opdatere evt. bookmark til den nye adresse)...
MEN en ting der skulle være "smart" er KUN at have dit site (detgodesite.dk) enten med www eller uden (men seo er jo en "jungle" at finde rundt i ;o), og jeg er ikke ekspert men har lavet en del)
10.3.2 301 Moved Permanently
The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.
The new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
Note: When automatically redirecting a POST request after
receiving a 301 status code, some existing HTTP/1.0 user agents
will erroneously change it into a GET request.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html