473,587 Members | 2,316 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\myacco unt\

my hosting provider wants 10$ (each domain) to allow me to do
something like
www.domain1.com maps to c:\sites\myacco unt\domain1\
www.domain2.com maps to c:\sites\myacco unt\domain2\
etc...

but, its free to something like (example)
web.domain1.com maps to c:\sites\myacco unt\domain1\
web.domain2.com maps to c:\sites\myacco unt\domain2\
etc..

so, WHAT I NEED, is:
to code a default.aspx and put it in
c:\sites\myacco unt\

this aspx page will have to catch all the
www.domainX.com requests and response.redire ct 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 1470
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.c om, MyFingersHurtBa d.com and
MyFingersAreTir ed.com and you have a main domain of MyHeadHurts.com . You
could build a folder struction as:

MyHeadHurts.com/MyFingersHurt/
MyHeadHurts.com/MyFingersHurtBa d/
MyHeadHurts.com/MyFingersAreTir ed/

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.p t> wrote in message
news:d8******** *************** ***@posting.goo gle.com...
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\myacco unt\

my hosting provider wants 10$ (each domain) to allow me to do
something like
www.domain1.com maps to c:\sites\myacco unt\domain1\
www.domain2.com maps to c:\sites\myacco unt\domain2\
etc...

but, its free to something like (example)
web.domain1.com maps to c:\sites\myacco unt\domain1\
web.domain2.com maps to c:\sites\myacco unt\domain2\
etc..

so, WHAT I NEED, is:
to code a default.aspx and put it in
c:\sites\myacco unt\

this aspx page will have to catch all the
www.domainX.com requests and response.redire ct 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
8146
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 that the apostrophe is automatically replace with two '' . Reason being--SQL Server does not like apostrophes being sent to database. I've tried to...
2
1808
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 System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
3
3436
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 load. When location.replace is called the animated GIFs in the first page stop animating. Is this standard behaviour? If so, is there an easy work...
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 System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
5
1627
by: JX | last post by:
Is it possible to replace the address in client browser for server.transfer with the the real location?
0
8205
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6619
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.