Canonical URL in DotNetNuke

首先,需要了解一下Canonical URL的概念:

Leeiio's Blog:

http://leeiio.me/canonical-wordpress-url/


Google China Webmaster:

http://www.googlechinawebmaster.com/2009/02/url.html

 

Yahoo Blog:

http://www.ysearchblog.com/2009/02/12/fighting-duplication-adding-more-arrows-to-your-quiver/

 

实现方式:

1. 直接在页面设置里面增加tag:

  • Login to your portal as Administrator.
  • Go to any page where you want to add a canonical tag.
  • Expand Control Panel by clicking icon next Show Control Panel?
  • Click to Settings button under Page Functions.
  • Expand Advanced Settings.
  • You will find Page Header Tags under Appereance section.
  • Add the code like below.

 

2.修改Default.aspx

 

Page.Header.Controls.Add(New LiteralControl("<link rel=""canonical""
href=""" & objTab.FullUrl & """ />"))
If NonProductionVersion() AndAlso Host.DisplayBetaNotice Then
...
End If

 

see details at :

http://blog.vishalon.net/index.php/how-to-enable-canonical-url-for-seo-in-dotnetnuke-5-x/

 

3.使用第三方module:

http://www.ifinity.com.au/Products/Canonical_Links_For_DNN

read more: http://www.ifinity.com.au/Blog/EntryId/62/DotNetNuke-and-the-Canonical-Url-Link-Element

 

谢谢观赏。

posted @ 2010-01-20 16:36  无尽思绪  阅读(1294)  评论(2编辑  收藏  举报