C
c_web
Hi
i have several domains
www.domain1.com
www.domain2.com
www.domain3.com
all the domains maps to the same directory in my hosting provider IIS
server
lets say : c:\sites\myaccount\
my hosting provider wants 10$ (each domain) to allow me to do
something like
www.domain1.com maps to c:\sites\myaccount\domain1\
www.domain2.com maps to c:\sites\myaccount\domain2\
etc...
but, its free to something like (example)
web.domain1.com maps to c:\sites\myaccount\domain1\
web.domain2.com maps to c:\sites\myaccount\domain2\
etc..
so, WHAT I NEED, is:
to code a default.aspx and put it in
c:\sites\myaccount\
this aspx page will have to catch all the
www.domainX.com requests and response.redirect to
web.domainX.com
i dont have an idea how to code this. Does anyone have an example?
ps: i know there is url-forwarding services, but, i want to handle
this myself if possible.
thank you.
i have several domains
www.domain1.com
www.domain2.com
www.domain3.com
all the domains maps to the same directory in my hosting provider IIS
server
lets say : c:\sites\myaccount\
my hosting provider wants 10$ (each domain) to allow me to do
something like
www.domain1.com maps to c:\sites\myaccount\domain1\
www.domain2.com maps to c:\sites\myaccount\domain2\
etc...
but, its free to something like (example)
web.domain1.com maps to c:\sites\myaccount\domain1\
web.domain2.com maps to c:\sites\myaccount\domain2\
etc..
so, WHAT I NEED, is:
to code a default.aspx and put it in
c:\sites\myaccount\
this aspx page will have to catch all the
www.domainX.com requests and response.redirect to
web.domainX.com
i dont have an idea how to code this. Does anyone have an example?
ps: i know there is url-forwarding services, but, i want to handle
this myself if possible.
thank you.