Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

User declared canonical for 404ed page is homepage?!

         

TomSnow

5:58 pm on Jun 6, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



The site I work on previously did not have a 404 page.

Every deleted page was redirecting to the homepage.

I had Dev create a 404 page and turn off auto-redirect to homepage.

Now GSC URL inspection tool says user declared canonical for these new 404 pages is the homepage.

When I control F in the source and look for the canonical, there is none.

What the heck is going on? And is it dangerous? Thanks!

tangor

3:21 am on Jun 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Deleted pages should return 410 ... check with DEV for why that is not happening!

lucy24

6:40 am on Jun 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Frankly I don’t trust your dev folks. Are they returning a 404 and serving the new 404 page at the originally requested URL ... or have they replaced the former redirect to / with a new redirect to /404.html ?

Depending on your site, it may or may not be acceptable to use the same (physical) page for both 404 and 410.

Robert Charlton

1:16 pm on Jun 8, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Use a header status code checker to check header response. Your error page(s) should not be returning a "200 OK" header status response.

Error pages should be returning response codes appropriate to the situation... a "404" response indicates "not found". A "410 Gone" indicates that the url is likely to be unavailable permanently.

----
You posted....
Now GSC URL inspection tool says user declared canonical for these new 404 pages is the homepage

See Google's "Search Console Help"...

URL Inspection Tool
[support.google.com...]
From the help page...
Important notes:
- This is not a live test. This tool describes the most recently indexed version of a page, not the live version on the web....

Also, on the help page...
URL is not on Google...
- What it means: This URL won't appear in Google Search results, but we think that was your intention. Most common reasons include a password-protected page, a noindex directive, or that this is an alternate version of a canonical page (alternate version pages are not indexed)....

- A few possible reasons: If the "User-declared canonical" and "Google-selected canonical" values are different, this means that this URL is one of a set of similar pages, and Google has chosen to index another version of the same page...

Read further details as directed on that help page....