lerni/silverstripe-canonical

This package is abandoned and no longer maintained. No replacement package was suggested.

A SilverStripe module to add canonical tag in SilverStripe 3

Installs: 1 072

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:silverstripe-module

dev-master 2020-04-08 08:11 UTC

This package is auto-updated.

Last update: 2021-10-08 11:24:09 UTC


README

Adds a simple rel=canonical tag to SilverStripe 3.x

Requirements

SilverStripe 3.6.x < 4

Installation

  • Install the code with composer require lerni/silverstripe-canonical
  • Run a dev/build?flush to update your project

Config

You need to set the extensions in your config.

Page:
  extensions:
    - CanonicalExtension
SiteConfig:
  extensions:
    - CanonicalSiteConfigExtension

Usage

This module adds a simple canonical tag to your pages to allow for the specification of the default domain or a specific tag per Page. The canonical tag allows you to signal to search engines like Google which is the authoritative version of the page to help reduce duplicate content issues caused by non-www versions, pages with different protocols, etc.