Welcome to WebmasterWorld Guest from 52.91.39.106

Forum Moderators: goodroi

Canonical of Site Root

Lighthouse Error?

     
10:14 am on Nov 7, 2018 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator ianturner is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 19, 2001
posts:3663
votes: 54


Lighthouse reports canonical of site root as being invalid, why is this the case and is it incorrect?

I would have thought that any page that is the same as the site root should have that in its canonical tag.

e.g.
example.com/
example.com/index.html
example.com/indextest.html
example.com/index.html#17
example.com/index.html?login=y

All have the same content, so as far as I understand the canonical should be example.com/ as that is what shows in search engines.
10:26 am on Nov 7, 2018 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Sept 13, 2018
posts:355
votes: 71


It might be related to this :


Don't point pages to the site's root page, unless their content is the same. This may be valid in some cases, such as for AMP or mobile page variations, but nonetheless Lighthouse treats this scenario as a failure.

[developers.google.com...]


I think you shouldn't worry about this error.
10:32 am on Nov 7, 2018 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11681
votes: 205


any request for a url containing a directory index document should be (301) redirected to the root of the requested directory.
10:43 am on Nov 7, 2018 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Sept 13, 2018
posts:355
votes: 71


Indeed.
5:45 pm on Nov 7, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15636
votes: 795


All have the same content
This wording makes me uneasy, because it implies that more than one of the five listed URLs is reachable as-is. That's a bigger problem than rel="canonical".
8:49 am on Nov 10, 2018 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator ianturner is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 19, 2001
posts: 3663
votes: 54


In my case often the pages are multivariate testing pages. So are just temporarily available as separate pages and redirect at other times hence the canonical.

Thank you justpassing and phranque that puts my mind at rest.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members