Our organization has a public website and an internal website. Both sites have their own master page and content pagse. The intranet site contains all of the content pages from the online site, plus some extra pages. Currently there are two copies of every file, one on the internet server, one on the intranet server (ie, Default.aspx exists both in x:/internet/ and x:/intranet) . These pages are completely identical, except for the master page, which contains different styling for the respective sites. As it stands now, to update one page, it needs to be changed on both servers. Is there a way to host the content pages on the internet server and then just pull them from there for the intranet server? If you're sitting on our network you can see both servers, from the outside you can only see the web server.
My idea is to keep two master pages and assign it to all pages based on what server the user is on, using the <pages master= "" > tag in the web.config file. Each server would have a different web.config.
Does anyone have experience with this, or suggestions on accomplishing this?
Here's a table showing what I want, this is just an example; the real site has about 15 pages online and another 10 that are only viewable on the intranet
|
Current Setup:
|
|
Internet Files
|
Intranet Files
|
|
default.aspx
|
default.aspx
|
|
about.aspx
|
about.aspx
|
|
links.aspx
|
links.aspx
|
|
|
users.aspx
|
|
|
applications.aspx
|
|
web.config
|
web.config
|
|
online.master
|
intra.master
|
|
Ideal Setup:
|
|
Internet Files
|
Intranet Files
|
|
default.aspx
|
|
|
about.aspx
|
|
|
links.aspx
|
|
|
|
users.aspx
|
|
|
applications.aspx
|
|
web.config
|
web.config
|
|
online.master
|
intra.master
|
Green text represents files that can ONLY be seen on the Intranet side