Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Settings Different for different portalsModule Settings Different for different portals
Previous
 
Next
New Post
3/14/2008 4:50 PM
 

Carlos,

I agree with the statement that you will be hitting the same portal regardless of which URL you enter in this case.  I didn't meant to imply that you could customize settings based on the alias being used, but rather that the browser itself would think of the two sites as being completely different, and may have cached the pages temporarily for one of the URLs.  In that scenario, one would potentially see two of the same pages configured differently , even though its the same portal (as the browser has the page cached for a particular URL).

However, I don't think setting the modules cachetime would make any difference in this scenario (as I thought it would earlier) -- as that is completely different from the browser keeping a cached version of a page or site.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
3/14/2008 4:54 PM
 

Ruchir,

I feel I should also mention that you should probably have one of those two URLs redirect to the other (which is pretty easy to do in IIS) -- instead of having two URLs that reach the same content. Search engines really frown on duplicated content, which is the way they would interpret your site.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
9/12/2008 8:29 AM
 

Hi Ian and Carlos,

I was busy in site completion and also I didn't get the notification of your replies so did not update this.

I have checked the code and knew that module settings are stored in cache using HttpRunTime.Cache and HttpRunTime.cache uses Temporary ASP.NET files for this.

The issue was that as my portal has to aliases www.domainname.com and www.domainname.co.nz and for IIS it’s two different web sites and because of this “Temporary ASP.NET files” folder contains two separate folders for each site. So when user request site www.domainname.com, module settings would be cached in folder of domainname.com and when user request site www.domainname.co.nz, module settings is stored in domainname.co.nz folder.

So when I change the module settings value from domaniname.com, cache of domainname.com is updated so it works fine but who will update the cache stored in domainname.co.nz folder.

I think there is only one way to resolve this is call Config.touch() method as it clears the cache of both folder.

Thanks,
Ruchir
 

 
New Post
9/12/2008 11:35 AM
 

Rachir,

You are most likely correct about the method that is needed to fix this, but it presents a few items that to me would be major warning signs of bad things to come.

1.) Calling config.touch() will restart the application, causing a delay in loading for anyone working in the site
2.) Serving the exact same content via 2 urls will put you very likely for penalty from Google and other search engines for duplicate content.

I would STRONGLY recommend doing as mentioned above and redirecting to a single URL!


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
9/13/2008 1:01 AM
 

Hi,

Thanks for pointing out this two points. Now we both are on the same page. 

1)      Yes, Config.touch() method updates web.config file and it restarts my application. But I had tried to find out the other way to resolve this issue but didn’t succeed. Do you know other way to resolve this issue?
2)      In my application I have one portal with two aliases. 50% modules of site are alias specific i.e if you visit www.domain.co.nz site then contact us module will display the contacts of New Zealand and if you visit www.domain.com site then the same contact us module will display company’s main office address. However there are some other modules which are general like announcements, terms &conditions, etc. So I cannot make two different portals.
To resolve the Google search issue what I added “rel=nofollow” attribute for almost all links which redirects user to NZ portal.
 
Thanks,
Ruchir
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Settings Different for different portalsModule Settings Different for different portals


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out