Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Sharing file resources accross multiple websites

 
Thread Tools Search this Thread
Old 12-23-2008, 08:47 AM   #1
Default Sharing file resources accross multiple websites


Hi there.
I have a problem in design I need to address.

I have 6 websites which all provide identical content, except that the
they are branded differently, ie each website is for a different city. I
have the city name in the web config for each website, and thus the
value is simply read from the WebConfig and brands each website differently.

Unfortunately every time I make a change to one of the pages for one
website I have to upload it to the six different locations (even though
the content is the same apart from the city name).


All of the websites are hosted on the same server and I have direct
access to IIS. Is there anyway I can simplify this so that I can store
the content in one location on the server, yet share it across Six
different domains and still keep my branding in each website via the
webConfig (or other means?). Ultimately I want each website to behave
seamlessly as a separate domain, especially in the eyes of Google for
ultimate SEO potential.

http://forums.asp.net/p/1027123/1401854.aspx


AndyGarcia
  Reply With Quote
Old 12-23-2008, 03:06 PM   #2
Alexey Smirnov
 
Posts: n/a
Default Re: Sharing file resources accross multiple websites
On Dec 23, 9:47*am, AndyGarcia <dgl...@hotmail.com> wrote:
> Hi there.
> I have a problem in design I need to address.
>
> I have 6 websites which all provide identical content, except that the
> they are branded differently, ie each website is for a different city. I
> have the city name in the web config for each website, and thus the
> value is simply read from the WebConfig and brands each website differently.
>
> Unfortunately every time I make a change to one of the pages for one
> website I have to upload it to the six different locations (even though
> the content is the same apart from the city name).
>
> All of the websites are hosted on the same server and I have direct
> access to IIS. Is there anyway I can simplify this so that I can store
> the content in one location on the server, yet share it across Six
> different domains and still keep my branding in each website via the
> webConfig (or other means?).


Why don't you use one website under IIS with 6 host headers? In this
case in the application you can identify each site using its domain
name, for example:

if (HttpContext.Current.Request.Url.Host.ToLower() ==
"www.domain1.com")
{
.....
}
else
....


Alexey Smirnov
  Reply With Quote
Old 12-23-2008, 11:22 PM   #3
AndyGarcia
 
Posts: n/a
Default Re: Sharing file resources accross multiple websites
Alexey Smirnov wrote:
> On Dec 23, 9:47 am, AndyGarcia <dgl...@hotmail.com> wrote:
>> Hi there.
>> I have a problem in design I need to address.
>>
>> I have 6 websites which all provide identical content, except that the
>> they are branded differently, ie each website is for a different city. I
>> have the city name in the web config for each website, and thus the
>> value is simply read from the WebConfig and brands each website differently.
>>
>> Unfortunately every time I make a change to one of the pages for one
>> website I have to upload it to the six different locations (even though
>> the content is the same apart from the city name).
>>
>> All of the websites are hosted on the same server and I have direct
>> access to IIS. Is there anyway I can simplify this so that I can store
>> the content in one location on the server, yet share it across Six
>> different domains and still keep my branding in each website via the
>> webConfig (or other means?).

>
> Why don't you use one website under IIS with 6 host headers? In this
> case in the application you can identify each site using its domain
> name, for example:
>
> if (HttpContext.Current.Request.Url.Host.ToLower() ==
> "www.domain1.com")
> {
> ....
> }
> else
> ...


Because this is not my exact problem. I've copied a very similar one
from asp.net forum.

It's a website that has an offer of items and management for those.
Other many sites will be resellers of those items and access the very
same database.
Items have pictures (many) and all other sites need access to those
images (same as database, but database is easy to share).

I got an idea to make normal directory and a virtual one for each of
those sites pointing to the original one.

Any better solution?

Or linking photos via url?


AndyGarcia
  Reply With Quote
Old 12-24-2008, 02:07 PM   #4
Alexey Smirnov
 
Posts: n/a
Default Re: Sharing file resources accross multiple websites
On Dec 24, 12:22*am, AndyGarcia <dgl...@hotmail.com> wrote:
> Alexey Smirnov wrote:
> > On Dec 23, 9:47 am, AndyGarcia <dgl...@hotmail.com> wrote:
> >> Hi there.
> >> I have a problem in design I need to address.

>
> >> I have 6 websites which all provide identical content, except that the
> >> they are branded differently, ie each website is for a different city. I
> >> have the city name in the web config for each website, and thus the
> >> value is simply read from the WebConfig and brands each website differently.

>
> >> Unfortunately every time I make a change to one of the pages for one
> >> website I have to upload it to the six different locations (even though
> >> the content is the same apart from the city name).

>
> >> All of the websites are hosted on the same server and I have direct
> >> access to IIS. Is there anyway I can simplify this so that I can store
> >> the content in one location on the server, yet share it across Six
> >> different domains and still keep my branding in each website via the
> >> webConfig (or other means?).

>
> > Why don't you use one website under IIS with 6 host headers? In this
> > case in the application you can identify each site using its domain
> > name, for example:

>
> > if (HttpContext.Current.Request.Url.Host.ToLower() ==
> > "www.domain1.com")
> > {
> > ....
> > }
> > else
> > ...

>
> Because this is not my exact problem. I've copied a very similar one
> from asp.net forum.
>
> It's a website that has an offer of items and management for those.
> Other many sites will be resellers of those items and access the very
> same database.
> Items have pictures (many) and all other sites need access to those
> images (same as database, but database is easy to share).
>
> I got an idea to make normal directory and a virtual one for each of
> those sites pointing to the original one.
>
> Any better solution?
>
> Or linking photos via url?


Ok, let me understand this. One common database, one common directory
of images, the same ASP.NET application, and many domain names, right?
So, why my suggestion will not work then? I think it should work. Of
course, a virtual directory could help too, but this would be probably
more or less the same solution. And for that matter, a SEO potential
could be not that high, I would say. All resellers sites would have
the same content and especially by Google it can be a problem. Plus
all sites will be on the same IP


Alexey Smirnov
  Reply With Quote
Old 12-26-2008, 11:02 AM   #5
AndyGarcia
 
Posts: n/a
Default Re: Sharing file resources accross multiple websites
Alexey Smirnov wrote:
> On Dec 24, 12:22 am, AndyGarcia <dgl...@hotmail.com> wrote:
>> Alexey Smirnov wrote:
>>> On Dec 23, 9:47 am, AndyGarcia <dgl...@hotmail.com> wrote:
>>>> Hi there.
>>>> I have a problem in design I need to address.
>>>> I have 6 websites which all provide identical content, except that the
>>>> they are branded differently, ie each website is for a different city. I
>>>> have the city name in the web config for each website, and thus the
>>>> value is simply read from the WebConfig and brands each website differently.
>>>> Unfortunately every time I make a change to one of the pages for one
>>>> website I have to upload it to the six different locations (even though
>>>> the content is the same apart from the city name).
>>>> All of the websites are hosted on the same server and I have direct
>>>> access to IIS. Is there anyway I can simplify this so that I can store
>>>> the content in one location on the server, yet share it across Six
>>>> different domains and still keep my branding in each website via the
>>>> webConfig (or other means?).
>>> Why don't you use one website under IIS with 6 host headers? In this
>>> case in the application you can identify each site using its domain
>>> name, for example:
>>> if (HttpContext.Current.Request.Url.Host.ToLower() ==
>>> "www.domain1.com")
>>> {
>>> ....
>>> }
>>> else
>>> ...

>> Because this is not my exact problem. I've copied a very similar one
>> from asp.net forum.
>>
>> It's a website that has an offer of items and management for those.
>> Other many sites will be resellers of those items and access the very
>> same database.
>> Items have pictures (many) and all other sites need access to those
>> images (same as database, but database is easy to share).
>>
>> I got an idea to make normal directory and a virtual one for each of
>> those sites pointing to the original one.
>>
>> Any better solution?
>>
>> Or linking photos via url?

>
> Ok, let me understand this. One common database, one common directory
> of images, the same ASP.NET application, and many domain names, right?
> So, why my suggestion will not work then? I think it should work. Of
> course, a virtual directory could help too, but this would be probably
> more or less the same solution. And for that matter, a SEO potential
> could be not that high, I would say. All resellers sites would have
> the same content and especially by Google it can be a problem. Plus
> all sites will be on the same IP


No, no...

- one common database
- one common directory of images
- one management ASP.NET application

- many "client" ASP.NET applications using common database and common
directory of images

- common database
and
- common directory of images

would just be providers of part of the data in client website offers.

Yes, those would "interpret" data a bit differently to enhance SEO, but
essentially it's the very same data in major part.
Sites would be on different IPs, even differently geo-marked IPs (COM,
EU, FR, TK, DE, CO.UK...)


AndyGarcia
  Reply With Quote
Old 12-30-2008, 10:00 AM   #6
Alexey Smirnov
 
Posts: n/a
Default Re: Sharing file resources accross multiple websites
On Dec 26, 12:02*pm, AndyGarcia <dgl...@hotmail.com> wrote:
> Alexey Smirnov wrote:
> > On Dec 24, 12:22 am, AndyGarcia <dgl...@hotmail.com> wrote:
> >> Alexey Smirnov wrote:
> >>> On Dec 23, 9:47 am, AndyGarcia <dgl...@hotmail.com> wrote:
> >>>> Hi there.
> >>>> I have a problem in design I need to address.
> >>>> I have 6 websites which all provide identical content, except that the
> >>>> they are branded differently, ie each website is for a different city. I
> >>>> have the city name in the web config for each website, and thus the
> >>>> value is simply read from the WebConfig and brands each website differently.
> >>>> Unfortunately every time I make a change to one of the pages for one
> >>>> website I have to upload it to the six different locations (even though
> >>>> the content is the same apart from the city name).
> >>>> All of the websites are hosted on the same server and I have direct
> >>>> access to IIS. Is there anyway I can simplify this so that I can store
> >>>> the content in one location on the server, yet share it across Six
> >>>> different domains and still keep my branding in each website via the
> >>>> webConfig (or other means?).
> >>> Why don't you use one website under IIS with 6 host headers? In this
> >>> case in the application you can identify each site using its domain
> >>> name, for example:
> >>> if (HttpContext.Current.Request.Url.Host.ToLower() ==
> >>> "www.domain1.com")
> >>> {
> >>> ....
> >>> }
> >>> else
> >>> ...
> >> Because this is not my exact problem. I've copied a very similar one
> >> from asp.net forum.

>
> >> It's a website that has an offer of items and management for those.
> >> Other many sites will be resellers of those items and access the very
> >> same database.
> >> Items have pictures (many) and all other sites need access to those
> >> images (same as database, but database is easy to share).

>
> >> I got an idea to make normal directory and a virtual one for each of
> >> those sites pointing to the original one.

>
> >> Any better solution?

>
> >> Or linking photos via url?

>
> > Ok, let me understand this. One common database, one common directory
> > of images, the same ASP.NET application, and many domain names, right?
> > So, why my suggestion will not work then? I think it should work. Of
> > course, a virtual directory could help too, but this would be probably
> > more or less the same solution. And for that matter, a SEO potential
> > could be not that high, I would say. All resellers sites would have
> > the same content and especially by Google it can be a problem. Plus
> > all sites will be on the same IP

>
> No, no...
>
> - one common database
> - one common directory of images
> - one management ASP.NET application
>
> - many "client" ASP.NET applications using common database and common
> directory of images
>
> - common database
> and
> - common directory of images
>
> would just be providers of part of the data in client website offers.
>
> Yes, those would "interpret" data a bit differently to enhance SEO, but
> essentially it's the very same data in major part.
> Sites would be on different IPs, even differently geo-marked IPs (COM,
> EU, FR, TK, DE, CO.UK...)


Well, then I think using a virtual dir is the only way to fix this.


Alexey Smirnov
  Reply With Quote
Old 12-30-2008, 12:57 PM   #7
AndyGarcia
 
Posts: n/a
Default Re: Sharing file resources accross multiple websites
Alexey Smirnov wrote:
> On Dec 26, 12:02 pm, AndyGarcia <dgl...@hotmail.com> wrote:
>> Alexey Smirnov wrote:
>>> On Dec 24, 12:22 am, AndyGarcia <dgl...@hotmail.com> wrote:
>>>> Alexey Smirnov wrote:
>>>>> On Dec 23, 9:47 am, AndyGarcia <dgl...@hotmail.com> wrote:
>>>>>> Hi there.
>>>>>> I have a problem in design I need to address.
>>>>>> I have 6 websites which all provide identical content, except that the
>>>>>> they are branded differently, ie each website is for a different city. I
>>>>>> have the city name in the web config for each website, and thus the
>>>>>> value is simply read from the WebConfig and brands each website differently.
>>>>>> Unfortunately every time I make a change to one of the pages for one
>>>>>> website I have to upload it to the six different locations (even though
>>>>>> the content is the same apart from the city name).
>>>>>> All of the websites are hosted on the same server and I have direct
>>>>>> access to IIS. Is there anyway I can simplify this so that I can store
>>>>>> the content in one location on the server, yet share it across Six
>>>>>> different domains and still keep my branding in each website via the
>>>>>> webConfig (or other means?).
>>>>> Why don't you use one website under IIS with 6 host headers? In this
>>>>> case in the application you can identify each site using its domain
>>>>> name, for example:
>>>>> if (HttpContext.Current.Request.Url.Host.ToLower() ==
>>>>> "www.domain1.com")
>>>>> {
>>>>> ....
>>>>> }
>>>>> else
>>>>> ...
>>>> Because this is not my exact problem. I've copied a very similar one
>>>> from asp.net forum.
>>>> It's a website that has an offer of items and management for those.
>>>> Other many sites will be resellers of those items and access the very
>>>> same database.
>>>> Items have pictures (many) and all other sites need access to those
>>>> images (same as database, but database is easy to share).
>>>> I got an idea to make normal directory and a virtual one for each of
>>>> those sites pointing to the original one.
>>>> Any better solution?
>>>> Or linking photos via url?
>>> Ok, let me understand this. One common database, one common directory
>>> of images, the same ASP.NET application, and many domain names, right?
>>> So, why my suggestion will not work then? I think it should work. Of
>>> course, a virtual directory could help too, but this would be probably
>>> more or less the same solution. And for that matter, a SEO potential
>>> could be not that high, I would say. All resellers sites would have
>>> the same content and especially by Google it can be a problem. Plus
>>> all sites will be on the same IP

>> No, no...
>>
>> - one common database
>> - one common directory of images
>> - one management ASP.NET application
>>
>> - many "client" ASP.NET applications using common database and common
>> directory of images
>>
>> - common database
>> and
>> - common directory of images
>>
>> would just be providers of part of the data in client website offers.
>>
>> Yes, those would "interpret" data a bit differently to enhance SEO, but
>> essentially it's the very same data in major part.
>> Sites would be on different IPs, even differently geo-marked IPs (COM,
>> EU, FR, TK, DE, CO.UK...)

>
> Well, then I think using a virtual dir is the only way to fix this.


Yes, that is the way I did it. Seemed most logical to me.


AndyGarcia
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use resources in jar daniele Software 0 10-17-2007 02:46 PM
Re: File Sharing Problem Steven L Umbach A+ Certification 2 01-21-2006 02:32 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46