Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   Running two websites with one IP address - Redirect by URL (http://www.go4expert.com/forums/running-websites-ip-address-redirect-url-t15163/)

joseph4.0 18Nov2008 04:07

Running two websites with one IP address - Redirect by URL
 
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

shabbir 18Nov2008 09:40

Re: Running two websites with one IP address - Redirect by URL
 
Yes, Shared hosting does that only.

pradeep 18Nov2008 18:46

Re: Running two websites with one IP address - Redirect by URL
 
Try this http://www.webmasterworld.com/micros...et/3673258.htm


All times are GMT +5.5. The time now is 13:34.