Board index » Web Programming » Sharing Include Files on Subdomains

Sharing Include Files on Subdomains

Web Programming55
We have a main web site (www.site.com) that uses ASP include files across all

the pages using the virtual tag. I now want to set up subdomains

(sub.site.com) that simply point to subfolders on our main site but when we

do this, since every pages using include files, the subdomian pages error

since the path of all the include files are at the root (www.site.com) not

the sub.



My question is how can I share the root include files so that all my

subdomain pages can pull from them??


-
 

Re:Sharing Include Files on Subdomains

Add the necessary folders which hold the include files as virtual

directories underneath your subdomain's websites. Then the virtual path that

the #include directive is using will still be valid.



Cheers

Ken



"Cal" <Cal@discussions.microsoft.com>wrote in message

Quote
We have a main web site (www.site.com) that uses ASP include files across

all

the pages using the virtual tag. I now want to set up subdomains

(sub.site.com) that simply point to subfolders on our main site but when

we

do this, since every pages using include files, the subdomian pages error

since the path of all the include files are at the root (www.site.com) not

the sub.



My question is how can I share the root include files so that all my

subdomain pages can pull from them??





-