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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DotNetNuke Portal Alias and 301 RedirectsDotNetNuke Portal Alias and 301 Redirects
Previous
 
Next
New Post
9/3/2006 12:21 PM
 

It is true that a 301 (permanent) redirect is better than a 302 (temporary) redirect for SEO.

The reason is because you do not want the same content to be indexed under more than one "key", or it looks like you are trying to spam the search engines.

The PortalAlias feature in DotNetNuke is not intended to be used in this way.  Each PortalAlias should be used to map to a unique portal.  When there are multiple domains pointing to a single portal then you should use SiteUrls.config (or some other method) to map them to unique content.

The reason that a 302 redirect happens instead of a 301 is because the Rewrite method in ASP.Net can not rewrite the Url to a different domain, so a Response.Redirect is used which is a 302 redirect.  It's a lot harder to do a 301 redirect in asp.net but it can be done. 

The question is, should the core code be trying to guess why you have more than one domain mapped to the same content and if you want a 301 or a 302 redirect?  My opinion is that it would probably be better if you handled these kinds of decisions outside of the core code, but it wouldn't take that much to change that re-direct to a 301 instead.

BTW, I have done a tricky little change to that part of the UrlRewrite code that actually makes all this work without any re-direct and actually makes the content come from a specific tab within my portal, but keeps the orginal domain name.  I do it by internally doing a web request to the actual tab and grabbing the content (a.k.a. "screen scrape") instead.  So now I have more than one domain that gets the content from different tabs withing my same portal.  As long as I never expose a link to the original tab on my main portal, then the search engines see that as a seperate domain, with it's own content.  I'm going to take this even further by making a skin that displays different content depending on the Url, but you can see what I mean by doing a

Google search for DotNetNuke Skins

The top result actually goes to a tab on Snapsis.com.  Once you are there, there is another tab for CSS Template Skins, which goes to another domain, but that domain is a different tab on Snapsis.com also.

The whole thing is not completely finished, but this is also my solution for doing "Portal Groups" where it may look like you have several different portals, but they are actually one portal and therefor offer SSO, and back-end admin management.


DotNetNuke Modules from Snapsis.com
 
New Post
9/3/2006 1:02 PM
 

DotNetNuke Modules from Snapsis.com
 
New Post
9/4/2006 2:42 AM
 
I ended up writing a simple module to auto-redirect the user (using 301) when certain tabs are visited.  I need this function because I moved an old DNN2 site to DNN4, and started using friendly URLs... but could not find a simple module or method out there for doing a simple 301 redirect.  If you're interested, I posted it here:

http://www.beldintechnologies.com/Forums/tabid/52/forumid/25/threadid/106/scope/posts/Default.aspx



Charlie Solomon
Beldin Technologies
Custom Software Solutions, DotNetNuke Modules
www.beldintechnologies.com
 
New Post
9/4/2006 4:32 AM
 
John Mitchell wrote

The PortalAlias feature in DotNetNuke is not intended to be used in this way.  Each PortalAlias should be used to map to a unique portal.  When there are multiple domains pointing to a single portal then you should use SiteUrls.config (or some other method) to map them to unique content.



Thanks for breathing life into this thread John ;)

I'll look into all these suggestions - it's pretty normal to have 5-8 domains (usually .co.uk, .com, .biz) etc for the same portal - I would hate to be penalised for it. I also normally but 1 or 2 domains and then decide on one - eg. PokerDIY.com vs Poker-Dream.com but I like to point them all at a website until they expire...

It would be nice not to have to setup a new portal just to put a 301 Redirect module on to point back to the main portal, but I have not yet looked at Site URL config stuff. Will check it out now...

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
3/10/2010 1:13 AM
 

I've been searching for a solution for 301 redirects.

I don't see anything wrong with using the portal aliases as the 301 redirection tool at the portal level. I can't think of other reasons for having several aliases in your portal, other than all pointing to the home page in your website.

I could not find an explanation as to why that is not implemented in the core DNN. Granted, I am a newbie and I may be wrong on this assumption. After 2 weeks of research on how to do 301 redirects, and after trying several comercial modules that did not achieve the result, I came accross a DNN core modification that works by using the first entry in the aliases table as the 301 Redirect destination.

I could not believe how easy it was to implement. The only draw back is that I will have to manually do this update after each DNN upgrade. This is the link to this solution:

http://oliverhine.com/DotNetNuke/CoreModifications/PrimaryPortalAliases.aspx

I am not sure why this has not been implemented as a core competency in DNN. Is there a possibility of this being considered?

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DotNetNuke Portal Alias and 301 RedirectsDotNetNuke Portal Alias and 301 Redirects


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