Forum Moderators: open

Message Too Old, No Replies

IIS 5: Redirect domain to subdirectory of other site

         

hayduke

8:37 pm on May 13, 2003 (gmt 0)



I've seen similar questions related to redirects but not quite this. Any thoughts are welcomed.

I have two domains hosted on the same server (Win2k, IIS 5). Let's call them www.domain1.org and www.domain2.org. Currently, each has it's own IP address and is a separate site in IIS.

What I'd like is to be able to manage domain2 as a site based in a subdirectory of domain1 and still have it appear to the user to be a fully distinct domain/site.

Thus, a visitor to www.domain2.org/index.htm would see just that but they would actually be at www.domain1.org/domain2dir/index.htm

Perhaps I'm wrong but it seems like this problem is best addressed in IIS and not DNS.

The reason for this is that we're using a CMS that won't allow content to be shared across different sites (but we'd like both domains to share some content). Thus, if we could manage domain2 within domain1 we would not need to duplicate posting of content.

Thanks.

DaveAtIFG

4:18 pm on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This was originally posted in Website Technology Issues and didn't get an overwhelming response... Anyone have any suggestions for hayduke?

davemarks

12:15 pm on May 16, 2003 (gmt 0)

10+ Year Member



You simply need to set the home directory to be be the folder within the other site

Stretch

12:46 pm on May 16, 2003 (gmt 0)

10+ Year Member



Yup, I agree with davemarks, it's simply a matter of setting the home directory for domain2 to a subdirectory of domain1.

If any content that needs to be shared resides above the root of domain2 you could use virtual directories to access it.