M
myalo
In the transition of a website from one domain to another for exmaple
from www.oldsite.com to www.newsite.com I need to "rewrite" the URL so
all links to the old site will be linked to the new site as follows:
1. For URLs that reference pages:
Change http://www.oldsite.com/dir1/content/content.aspx?p1=1&p2=2
into http://www.newsite.com/dir1/content/content.aspx?p1=1&p2=2
2. For URLs that reference sub domains:
Change http://subdomain.oldsite.com to http://subdomain.newsite.com
3. For URLs that reference sub folders
change http://www.oldsite.com/sub1
to http://www.newsite.com/sub1
How can it be done?
If it can be done with RewritePath method of HTTPContext, can someone
show me simple code?
Thanks
from www.oldsite.com to www.newsite.com I need to "rewrite" the URL so
all links to the old site will be linked to the new site as follows:
1. For URLs that reference pages:
Change http://www.oldsite.com/dir1/content/content.aspx?p1=1&p2=2
into http://www.newsite.com/dir1/content/content.aspx?p1=1&p2=2
2. For URLs that reference sub domains:
Change http://subdomain.oldsite.com to http://subdomain.newsite.com
3. For URLs that reference sub folders
change http://www.oldsite.com/sub1
to http://www.newsite.com/sub1
How can it be done?
If it can be done with RewritePath method of HTTPContext, can someone
show me simple code?
Thanks