Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17850

Avoid content duplication penalty by Google (correction code inside this post)

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.4.0
    • Misc
    • None

    Description

      I think that to avoid the penalty when the variable RemoveSiteAccessIfDefaultAccess in site.ini is set to "enabled" the file kernel/private/classes/ezplanguageswitcher.php should have the line 160 changed (replaced) with the following code.

       $saIni = $this->getSiteAccessIni();
      if (( $saIni->variable( 'SiteSettings', 'DefaultAccess' )==$this->destinationSiteAccess) &&  ($saIni->variable( 'SiteAccessSettings', 'RemoveSiteAccessIfDefaultAccess' )=='enabled' ))
                      $finalUrl = $this->baseDestinationUrl . '/' . $urlAlias;
                  else
                       $finalUrl = $this->baseDestinationUrl . '/' . $this->destinationSiteAccess . '/' . $urlAlias;
      

      Current EZPublish code doesn't consider the variable RemoveSiteAccessIfDefaultAccess at all and when this variable is set to "enabled" and there are at least 2 public site accesses Search Engines find more url with same content and this is not good.

      thanks.

      Attachments

        Activity

          People

            unknown unknown
            garzo garzo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: