首先,需要了解一下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.

Canonical URL in DotNetNuke

 

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

 

谢谢观赏。

相关文章:

  • 2022-03-06
  • 2021-10-27
  • 2021-06-21
  • 2021-11-20
  • 2022-12-23
  • 2021-11-16
  • 2021-06-22
  • 2021-06-01
猜你喜欢
  • 2021-09-10
  • 2022-12-23
  • 2022-01-20
  • 2021-11-15
  • 2022-12-23
  • 2021-08-15
  • 2021-06-14
相关资源
相似解决方案