Sitecore enables accessing child node around parent

后端 未结 5 1633
暗喜
暗喜 2021-01-26 04:14

I have a sitecore multisite setup.

i\'m currently struggling with the \"duplicate content syndrome\" were google bots indexes my sites and is able to access the content

5条回答
  •  情书的邮戳
    2021-01-26 04:59

    You need to make sure you have set the hostName and targetHostName attribute in your configuration. This will ensure when you link to content between sites the link will render out the full URL including hostname.

    hostName: The host name of the incoming url. May include wildcards (ex. www.site.net, *.site.net, *.net, pda.*, print.*.net)
              It's possible to set more than one mask by using '|' symbol as a separator (ex. pda.*|print.*.net)
    targetHostName: The host name to use when generating URLs to items within this site from the context of another site.
              If the targetHostName attribute is absent, Sitecore uses the value of the hostName attribute instead.
              Used only when the value of the Rendering.SiteResolving setting is true.
    

    And make sure Rendering.SiteResolving=true

      
      
    

    You will always be able to access a page with the full path, so as Jens says add in canonical link tags. Once you've resolved the cross site linking and canonical links issue then the google bots should oly be following clean links.

提交回复
热议问题