1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Running two websites with one IP address - Redirect by URL

Discussion in 'Web Development' started by joseph4.0, Nov 17, 2008.

  1. joseph4.0

    joseph4.0 New Member

    Joined:
    Nov 17, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I want to know if it’s possible to host two websites on the same server using the same port (80) and IP address. I am limited to using Microsoft IIS 7.0 not apache, but I can run PHP on it. (One of the sites is Joomla based)
    If I register two domain names to, example1.com and example2.com, to IP address xx.xxx.xxx.xxx is there a script I could run or an IIS setting I could change so that users are redirected to a different folder or index page based on which domain name they use? Also if this is done with a PHP script or something similar would search engines index both pages correctly?
    I know similar results can be achieved with Apache by using Virtual hosts in the httpd.conf file, but unfortunately I don’t know if this is possible with IIS.
    Thanks for the help
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Yes, Shared hosting does that only.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:

Share This Page