473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

replace URL and redirect

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.
Nov 18 '05 #1
1 1452
You can also acheive this effect by using featuers of your registrar for the
domains. I use DotYou.com that costs $9.75 per year (they also give you
credit for any remaining time are your current at your registrar). They
provide DNS and give you URL forwarding and URL cloaking. With cloaking,
you simply setup a path on your web site to be the web site for each domain.

For an example, if you had MyFingersHurt.com, MyFingersHurtBad.com and
MyFingersAreTired.com and you have a main domain of MyHeadHurts.com. You
could build a folder struction as:

MyHeadHurts.com/MyFingersHurt/
MyHeadHurts.com/MyFingersHurtBad/
MyHeadHurts.com/MyFingersAreTired/

Then in the registrar, you would enable cloaking for those three domains and
point them to those folders. They will appear as:

www.MyFingersHurt.com
www.MyFingersHurtBad.com
www.MyFingersAreTired.com

And you do not have to pay extra at your host to host the domains, they are
simple folders in your current domain.

--
Rocky Moore
www.HintsAndTips.com - ~ Developer Tips Welcome ~
www.RJSoft.com/Products/RJContentPanel/ - Free web user content control!

"c_web" <c_***@sapo.pt> wrote in message
news:d8**************************@posting.google.c om...
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.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
8132
by: Barnes | last post by:
Does anyone know of a good way to use the JavaScript string.replace() method in an ASP form? Here is the scenario: I have a form that cannot accept apostrophes. I want to use the replace() so...
2
1790
by: brian | last post by:
Is there a way to use location.replace in code behind? The code below will work for a window.alert but not for location.replace. For example: Private Sub Page_Load(ByVal sender As...
3
3427
by: Al | last post by:
Hi all... I have created an aspx page that contains an animated GIF. I am using javascript and location.replace to redirect from this page to another aspx page which takes several seconds to...
2
357
by: brian | last post by:
Is there a way to use location.replace in code behind? The code below will work for a window.alert but not for location.replace. For example: Private Sub Page_Load(ByVal sender As...
5
1623
by: JX | last post by:
Is it possible to replace the address in client browser for server.transfer with the the real location?
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.