[RFC] Search engine optimization: canonical link elements

These requests for comments/change have lead to an implemented feature that has been successfully merged into the 3.1/Ascraeus branch. Everything listed in this forum will be available in phpBB 3.1.
User avatar
Noxwizard Online
Support Team Leader
Support Team Leader
Posts: 138
Joined: Sun Dec 18, 2005 5:44 pm
Location: Texas
Contact:

[RFC] Search engine optimization: canonical link elements

Post by Noxwizard »

To help search engines with duplicate detection, I think it would be a good idea to add a canonical link element to the page header. It is currently possible to reach the same pages under many different URLs, so we are not providing singular addresses to search engines:
  • index.php
    • SID
    viewforum.php?f=#
    • SID
    • start offset
    • sort key
    • sort direction
    • sort days
    viewtopic.php
    • ?f=#&t=#
    • ?p=#
    • SID
    • start offset
    • sort key
    • sort direction
    • sort days
The memberlist also has sort parameters, but I think at the least we should have those three pages set up to provide a canonical address. This would also aid sites that use "pretty URLs." The canonical forms should be:
  • index.php
    viewforum.php?f=#(&start=#)
    viewtopic.php?f=#&t=#(&start=#)
Canonical links are supported by:
Ask.com - Article link is dead
Bing
Google
Yahoo

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC] Search engine optimization: canonical link element

Post by MichaelC »

+1. Sounds like a good idea to me.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Search engine optimization: canonical link element

Post by Oleg »

Search engines should not be getting urls with sids, but users may use such urls and as a result search engines may index them, therefore I agree with the sid part.

Start offset is needed to index pages > 1, it has to stay.

Sort key, direction and days should only be selectable via a form which search engines do not use. I don't recall ever seeing an indexed viewforum view not in default order. Theoretically we can handle the sort bits but I doubt it's worth the effort.

Viewtopic is interesting as the usual view is the topic view, not a single post view. From my experience with search engine indexed forum posts, sometimes reading just the one post is enough and sometimes I want to see the entire topic. I doubt we can select one or the other for all posts on all boards.

User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Berlin, Germany
Contact:

Re: [RFC] Search engine optimization: canonical link element

Post by naderman »

+1 on adding canonnical urls in the header where applicable. I agree with Oleg that we should be careful what to consider duplicate content URLs.

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 557
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany
Contact:

Re: [RFC] Search engine optimization: canonical link element

Post by bantu »

naderman wrote:+1 on adding canonnical urls in the header where applicable. I agree with Oleg that we should be careful what to consider duplicate content URLs.
+1

User avatar
Louis7777
Registered User
Posts: 394
Joined: Fri Apr 04, 2014 12:32 am

Re: [RFC] Search engine optimization: canonical link elements

Post by Louis7777 »

Was this developed at any point or has it been forgotten?

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 557
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany
Contact:

Re: [RFC] Search engine optimization: canonical link elements

Post by bantu »


User avatar
Pete77s
Registered User
Posts: 43
Joined: Mon Feb 07, 2005 4:55 am

Re: [RFC] Search engine optimization: canonical link elements

Post by Pete77s »

Perfect! 3.1 has begun to change my thinking on the need for seo prettyfications when I upgrade.

Great job, guys :)

User avatar
rfdy
Registered User
Posts: 45
Joined: Wed Apr 16, 2014 2:28 pm

Re: [RFC] Search engine optimization: canonical link elements

Post by rfdy »

Why wouldn't the view=print be included in the canonical? It seems like obvious duplicated content. If it isn't a canonical it should at least be include a robots "nofollow" meta.

Related: is there not a default robots.txt file?

User avatar
Vinny
Style Customisations
Style Customisations
Posts: 129
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

Re: [RFC] Search engine optimization: canonical link elements

Post by Vinny »

rfdy wrote:Why wouldn't the view=print be included in the canonical? It seems like obvious duplicated content. If it isn't a canonical it should at least be include a robots "nofollow" meta.

Related: is there not a default robots.txt file?
https://github.com/phpbb/phpbb/blob/dev ... nt.html#L5

Post Reply