Turning 404 pages into 410s for faster de-indexing

Is there a way to turn a 404 page into a 410 to de-index it on Google quickly?

I’m guessing it’s a deleted topic?

:thinking:

Perhaps deleted topics should return a 410 Gone instead of a 404.

2 Likes

Actually it’s 404 from what I can see.

The site got crashed, lost all data and now in the GSC it shows 404 for all the old links instead of 410.

From Discourse’s perspective, 404 is correct since it doesn’t exist and never did.

If you have a list of old pages, probably the easiest thing to do is create a custom outlet file for nginx that tells it to return with 410 when those pages are hit.

1 Like