Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: phranque
Most of these are lifted from, slightly modified, or examplified forms of posts here at WebmasterWorld and summarized here for reference. Thanks to skipfactor, pageoneresults, korkus2000, Xoc, jdMorgan, Decius, and Daiman for their posts on these topics.
Case: You are transferring from www.example-old.com to www.example-new.com. The architecture of the site will remain the same - you simply want to switch to a new domain name. You want to pass related page and parameter information.
Server Level Redirects
RewriteRule ^(.*)$ http://www.example-new.com/$1 [R=301,L]
IIS (Built In Rewrite Module)
Language Specific Redirects
[edited by: oilman at 8:18 pm (utc) on June 16, 2004]
print "Status: 301 Moved Permanently\r\n" .
"Location: http://www.example-new.com" .
[edited by: oilman at 8:23 pm (utc) on June 16, 2004]
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.example-new.com" _
& Request.ServerVariables("SCRIPT_NAME") _
& "?" & Request.ServerVariables("QUERY_STRING")