Redirect for Multiple Domains

Results 1 to 3 of 3

Thread: Redirect for Multiple Domains

  1. #1
    Eric Bein Guest

    Default Redirect for Multiple Domains

    I&#039m currently using a re-direct script to redirect the HTTP request to a sub directory on the server for multiple domains hosted at one IP address. The problem I have is that when the re-direct takes place, the address in the browser window includes the sub directory. So for DOMAIN1 and DOMAIN2 the default pages are addressed in the browser as follows:<BR><BR>http://WWW.DOMAIN1.COM/domain1<BR>http://WWW.DOMAIN2.COM/domain2<BR><BR>Does anyone have any ideas on how to get the browser to display the addresses as:<BR><BR>http://WWW.DOMAIN1.COM<BR>http://WWW.DOMAIN2.COM ?<BR><BR>Is there a way to dynamically change the root???<BR><BR>Any suggestions would be greatly appreciated.<BR><BR>Eric Bein

  2. #2
    Join Date
    Dec 1969

    Default RE: Redirect for Multiple Domains

    Have you checked out this article on 4Guys?<BR><BR>Using One IP Address to Host Multiple Domains<BR><BR><BR>I&#039ve not tried it out myself, but I think it is what you&#039re looking for. It uses an IIS setting as opposed to a Response.Redirect to send the user to the right place....<BR><BR>Happy Programming!

  3. #3
    Eric Bein Guest

    Default RE: Redirect for Multiple Domains

    Thanks Scott, I appreciate it. I&#039ve actually read that article already, but unfortunatly, I don&#039t have access to those IIS settings. I&#039m using a virtual host company, and was hoping there was someway I could dynamically change the root via asp. I&#039m probably hoping for too much, but I just figured that if there was a will, there must be a way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts