Click here to Skip to main content
15,879,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working on multiple websites in mvc. Some websites are top level domains and some are subdomain but all these websites are hosted on same server.

I want all these websites should access same directory for save and retrieve some files in this way i can manage files efficiently.

Currently every website is handling data its own wwwroot directory so when i need these files on different website then i have to do lot of work for retrieval.

For this purpose i have created folder out side the websites directory and point out as virtual directory in one websites. I tried to repeat same process for other websites but can 't do this because hosting server does not permit me to point out virtual directory on same folder.

So my question is this limitation of IIS. Is there any other technique to do this task in better way?

1 solution

Please see:[^].

I never did it with IIS, but there are many forum Questions and Answers related to this feature (did you look for them?), and it looks like this is a pretty usual request; and all experts say it won't be a problem. So, I though it would be safe to say that this is not really a problem and refer you to this documentation. Same thing, even easier, goes with Apache.

Your problem might be having several different domains themselves, but this is just the problem of DNS and, usually, your Web hosting provider, and your hosting plan. Normally, to obtain a top-level domain, you have to register it in your name and pay some fee. I hope you know all that stuff, mentioned it just in case.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900