Canonical Tag Mod

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Canonical Tag Mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox Caution
Canonical Tag Mod
Summary Creates canonical links for the getperson.php page to reduce duplicate without user-selected canonical no index errors.
Validation Latest mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 09 May 2024
Download link For
TNG 14.0

canonical_tag_mod_v14.0.3.2
Download stats Downloads Stats
Author(s) Steven Davis
Homepage Canonical Tag Mod (This page)
Mod Support TNG Community Forums
Contact Developer Steven Davis
Latest Mod 14.0.3.2
Min TNG V 14.0.3
Max TNG V 14.0.4
Files modified
ahnentafel.php
descend.php
descendtables.php
descendtext.php
descendvert.php
extrastree.php
fan.php
genlib.php
getperson.php
pedigree.php
pedigreetext.php
register.php
verticalchart.php
Related Mods
Notes


Obsolete Canonical Tag Mod is now obsolete. This feature was added in TNG v14.0.5 Obsolete


Introduction

A canonical tag is a Internationalized Resource Identifier that links to a user-specified canonical (primary) version of a webpage.
Canonical tags optimize search engine indexing which improves the SEO rating.
Tags are not added to group pages due to overriding an individual's page.

Developer

This mod was developed by Steven Davis.

Advantages

Automatically assigns a canonical tag on getperson and associated pages.
Reduces Duplicate without user-selected canonical issues.
Does not use queries or affect TNG performance.
Meets Google's requirement to index pages when alternate content is found.
Meets the canonical RFC 5988 specification.

Additional Canonical Information

Canonical links direct search engines to a primary or preferred webpage. Only one canonical link is permitted on each page.
Canonical links can be used on any webpage, but this mod makes people the focus for search engines.
A canonical link is placed on the getperson page with a link to itself, or that same page.
Links are also placed on charts, when a person is the primary on the page, and links to the getperson page.
This aids in preventing the person not being indexed because they appear as a duplicate on another page.
While canonical links tell search engines which link to use for indexing, it does not guarantee the page will be indexed.
Duplicate user-selected canonical errors cannot be completely eliminated due to numerous ways pages are linked.
According to Google, having duplicate user-selected canonical links is normal.

Visual Google Search Console

Before installing the mod, the referring page link could not be indexed. The referring page link also points to a different Google selected canonical.
Since the referring page is not indexed it will not appear in Google search results while the incorrect Google selected canonical will appear in searches.
In this case the referring page actually links to a spouse.

Canonical-2.jpg


After installing the mod, the referring page can be indexed as shown.

Canonical-3.jpg


Adding a canonical tag does not guarantee search engines will index the page, but it does ensure a correct canonical link with a better index probability.
In this case Google accepted the user-declared canonical and the link now appears in Google search results.


Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • A backup of tngrobots.php.
  • An installed current version of the Mod Manager.

Revision History

Mod Version TNG Version Date Contents
14.0.3.2 14.0+ 28 May 2024 Removed site version from the getperson canonical link to eliminate any conflicts when search engines change crawl mode between standard and mobile.
14.0.3.1a 14.0+ 09 May 2024 Changed anchor to resolve conflict with Simple SEO (Thanks John Mark Motyer)
14.0.3.1 14.0+ 09 May 2024 First released version


Conflicts and Issues

Mod Conflict Note the install order requirements.

Canonical Tag Mod conflicts with Mobile Site Enhancements. If you also use the Mobile Site Enhancements mod, it must be installed after the Canonical Tag Mod. You may need to uninstall the Mobile Site Enhancements and install it after the Canonical Tag Mod

Mod Conflict


Once both mods are installed either mod can be uninstalled without affecting the other.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file and folder from the downloaded zip file into the mods folder or FTP the extracted file and folder to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

  • Try using the Mod Manager Remove capability.
  • Copy the backup of the affected files back to your TNG directory.
  • Copy the backup of tngrobots.php file back to your TNG directory.
  • Retry installing mod.
  • Contact us through the TNG Community Forums.

Uninstalling the mod

If you want to completely Remove (uninstall) this mod, you should

  1. click the Uninstall button to uninstall the mod

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
Family Histories Steven Davis Mod developer 14.0.3.2
TNG 14.0.4
EN
Treichel-Familie.de Andreas Treichel Public & Private 14.0.3.2
TNG 14.0.4
DE,EN,FR,ES,PL
Roger's Ramblings Roger Moffat 14.0.3.1a
TNG 14.0.4
EN
Barta Joggele aus Mauren, Liechtenstein Gerald Meier Private 14.0.3.1a
TNG 14.0.4
DE,EN,FR,ES,CZ,PT,IT,SL
Gambrillfamilytree Bobby Gambrill 14.0.3.1a
TNG 14.0.4
EN