Monday 11 April 2011

Reverse SiteUrls in DotNetNuke

DotNetNuke made very good solution for custom URLs. This is SiteUrls.config file. It allows to add to this file something like this:

<RewriterRule>
<LookFor>.*/About.aspx</LookFor>
<SendTo>~/Default.aspx?TabID=40</SendTo>
</RewriterRule>

When your customers type something like http://mysite.com/About.aspx DotNetNuke Portals shows correct page from tabid=40. Issue happens when you click this page in the menu. Instead http://mysite.com/About.aspx it shows http://mysite.com/About/tabid/40/Default.aspx.

It confuses clients and search bots. Bots can penalize, because it looks like duplicates of content. This is why our team made small additional. It makes reverse lookup in the SiteUrls.config and replaces with related URL (if any).

Additional is free and opensource and available at codeplex.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.