2

We have decommissioned an old website and replaced the homepage with a similar static page stating that the offer is no longer available.

  • We are returning the homepage with a 200 header if navigated to directly.
  • We are returning the homepage with a 404 header for resources that cannot be found (including all the old pages that used to have content).

Is this good practice for this scenario? We could feasibly return a 404 for direct navigation to the homepage as well or create a separate 404 page for resources that cannot be found.

  • 1
    "We are returning the homepage with a 404 header resources that cannot be found" - what does that mean? – MrWhite Mar 29 '17 at 17:31
  • I would think that anytime a user gets a valid page they should be greeted with a hardy howdy-do 202 instead of the dreaded middle-finger of a 404. – closetnoc Mar 29 '17 at 18:23
  • 1
    @w3dk Sorry, I missed out a word and have corrected it. We basically serve the static homepage html as both the homepage and as the 404 page. – Arth Mar 30 '17 at 9:04
  • @closetnoc 202 seems wrong here, did you mean 200? Although, they aren't valid resource locations anymore, and 404 isn't so much a middle finger as an empty room! – Arth Mar 30 '17 at 9:08
  • @Arth Ooopppsss!! Typo! At least it rhymes! Cheers Mate!! – closetnoc Mar 30 '17 at 15:01
1

Returning the same page (or rather, the same "content" - I assume you are not literally redirecting to the homepage?!) with different status codes does seem a bit "wrong". Although this isn't necessarily "bad" - the website is decommissioned after all.

We are returning the homepage [stating that the offer is no longer available] with a 200 header if navigated to directly.

This seemed odd initially when first reading... if the website is "decommissioned" then why not just return a 404 for everything? However, depending on what the site previously offered, it may be preferable for Google to index this "notice" so users can find it. (?)

We are returning the homepage with a 404 header for resources that cannot be found (including all the old pages that used to have content).

Whilst I don't think this is necessarily "bad", I think it would be preferable to return a more customised 404 which either contains the additional information about the site being decommissioned or links to the homepage (where they can get more information). That way, the homepage (content) only ever returns a 200 OK and it's more immediately obvious to the user that the resource does not exist.

  • 1
    '[A customised 404 is] more immediately obvious to the user that the resource does not exist.' - I think that's the answer right there! – Arth Apr 6 '17 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.