410 Gone vs 301 Redirect: Which to Use When Pruning URLs
Most teams pick a default for retired URLs, and the default is usually 301 because it feels like the safe choice. It is the safe choice for a page that moved. For a page that no longer exists and has no successor, it is the wrong choice, and it is wrong in a way that quietly costs traffic from links you had forgotten about.
The distinction is not cosmetic. It changes what happens to every internal link pointing at the URL, it changes how fast the crawler clears the URL out, and in one common case it is not available at all.
The difference, in one paragraph
A 301 says this URL has moved, and here is where it went. The crawler follows it, the ranking signal travels along the hop, the link equity is passed to the destination, and the old URL stops being a distinct thing. A 410 says this URL was here and has been deliberately removed. The crawler records the removal, clears the URL from its index, and stops coming back. No destination. No signal transfer. The URL is retired, which is what you actually meant.
Both are permanent. That is the part people conflate. Permanence is not the axis of the decision. Intent is.
Why defaulting to 410 kills your internal links
Here is the trap. Suppose you have retired 3,000 product URLs. They are gone. Nothing links to them deliberately. They are dead weight and removing them is obviously correct.
Then you serve 410 for all 3,000, as the name of the post suggests you might.
Now consider the 6,000 internal links that still point at them. You think there are none. You are wrong. There are footer blocks, blog posts written two years ago, a navigation component whose JSON was never cleaned up, a set of comparison pages, an email template archive that got scraped into a static page, and one trust page that lists every product category ever created. Those links now point at a 410.
A link to a 410 does not redirect anywhere. It delivers a gone response to the person who clicks it, and it delivers nothing at all to the crawler following the graph. You have not removed the dead URLs from your internal link structure. You have converted a passive problem into an active one, where real visitors now land on an error instead of on a product.
A link to a 301 does something else entirely. The crawler follows the hop, the destination is discovered, the equity that was sitting on the dead URL arrives somewhere useful, and the person clicking gets a product page.
So the rule that falls out of this is not "301 is safer". The rule is: choose 410 only for URLs that have no internal links and no external links you can see. Everything else gets a 301, because everything else needs somewhere to send the traffic.
When 301 is right
A 301 is right when the retired URL has a genuine successor. In practice that means:
- A product that was replaced by a newer version of the same product. The old SKU URL goes to the new SKU URL.
- A category that was reorganised. The old category has a real parent or a real child, and the mapping is not ambiguous.
- A campaign or promotional landing page whose content now lives at a permanent page.
- A blog post that has been rewritten and republished under the same slug or a new one.
- Any URL that receives links you have not audited and cannot rule out.
That last case deserves emphasis, because it is the one people get wrong. You cannot see your whole internal link graph from the outside. A crawl gives you an approximation bounded by the crawl budget, and PruneSEO's default of 5,000 fetches per run will not find every link into a page with 40,000 inbound internal references. If your confidence that a URL has no inbound links is "probably", use a 301.
The mapping matters more than the status code. A 301 to your homepage is technically a redirect and it is also a lie. See the last section.
When 410 is right
A 410 is right when the URL genuinely has nothing to point at and nothing pointing at it:
- A filtered URL that was never a destination, such as a colour permutation of a category page.
- A staging, preview or print URL that was briefly exposed.
- A test order or campaign URL from an abandoned promotion.
- A URL that returned a soft 404 for a long time and was never indexed. There is nothing to protect and nothing to transfer.
The soft 404 case is the interesting one and it connects to the facet problem. If a URL has been returning a soft 404 for eighteen months, Google has already made its decision about it. A 410 confirms that decision cleanly and lets the crawler stop revisiting. A 301 to the category page in that situation sends a signal to a page that was already fine, and adds a redirect hop to a URL that never had authority to carry.
Serving them: Apache and nginx
Both statuses are easy to serve. The thing that goes wrong in practice is not the syntax, it is that someone writes 200 lines of one-off rules and cannot tell which campaign any given line belongs to.
On Apache, the 410 case uses the G flag with an explicit status:
RewriteEngine On
# Campaign 2026-10 prune. Retired with no successor and no inbound links.
RewriteRule ^/products/legacy-desk-lamp/?$ - [G=410,L]
RewriteRule ^/collections/spring-2019/?$ - [G=410,L]
RewriteRule ^/search/?$ - [G=410,L]
# Campaign 2026-10 prune. Replaced by a successor, so the signal moves.
RewriteRule ^/products/desk-lamp-classic/?$ /products/desk-lamp [R=301,L]
RewriteRule ^/collections/clearance/?$ /collections/sale [R=301,L]
On nginx, a map block keeps the campaign data in one readable table at the top of the file:
map $uri $pruneseo_action {
default "";
"~^/products/legacy-desk-lamp/?$" "410";
"~^/collections/spring-2019/?$" "410";
"~^/products/desk-lamp-classic/?$" "/products/desk-lamp";
"~^/collections/clearance/?$" "/collections/sale";
}
server {
listen 80;
server_name store.example;
# Retired permanently, nothing to point at.
if ($pruneseo_action = "410") {
return 410;
}
# Retired permanently, successor exists.
if ($pruneseo_action != "") {
return 301 $pruneseo_action;
}
location / {
proxy_pass http://app;
}
}
One table, one place to change, and the order of operations is unambiguous: the 410 test runs first, the redirect catches what is left. Keep the table small and keep it version controlled. A redirect file of 40,000 rows is not a strategy, it is an incident waiting for the next content migration.
Verify after applying. A handful of curl -I calls against the top, middle and bottom of the table is enough to catch a syntax error that silently disables the entire block.
The platform gap nobody tells you about
Not every platform can serve a 410, and if you do not check this before you plan a campaign you will promise something you cannot deliver.
Shopify cannot serve a 410. Its redirects are 301-only, full stop. On Shopify, pruning a page means hiding it from sitemaps, hiding it from search indexing, and hiding it from storefront search, while the page itself continues to return 200 to anyone who has the URL.
That means the honest description of a Shopify prune is: we removed it from the surfaces we control, and the URL still resolves for anyone who knows it. Writing "we sent it to 410" in a client report about a Shopify site would be false, and someone would eventually find out, probably from a customer.
This generalises. Before planning any prune campaign, establish which status codes the platform can actually serve. If the answer is "301 only", then your 410 bucket is empty and your redirect map needs destinations for everything you retire, including the ones with nowhere sensible to go. The last section covers that.
What a redirect-to-homepage campaign really costs
When a platform cannot serve 410 and a URL has no successor, the path of least resistance is to redirect everything to the homepage. This is a well-known anti-pattern and it still happens constantly, because it is easy, it makes the redirect log look busy, and it makes the crawl errors go away.
Here is what it costs.
The destination gets no useful signal. A redirect to a page with no relationship to the source transfers nothing meaningful. Google treats large volumes of irrelevant redirects as a soft signal on the destination, and the homepage is the one page on the site you cannot afford to weaken.
You have taught the crawler that your URLs resolve to anything. A site that redirects thousands of unrelated paths to one page teaches the crawler that its URL space is unreliable. That degrades trust in the redirect mechanism itself, which is the mechanism your genuine migrations depend on.
You have hidden the problem. A campaign that reports "18,000 redirects applied, coverage improved" has measured the disappearance of crawl errors, not the health of the site. Nothing was pruned. The URLs were repointed at a page that did not need them.
The report is hard to defend. Ask a client why 18,000 product URLs now point at their homepage. There is no answer that survives the question, and if the answer is "the platform would not let us send a 410", the answer is that the campaign should not have been run at that size.
The defensible alternative, on a 301-only platform, is to send each retired URL to the nearest genuine ancestor: the parent category, the replacement product, the relevant collection. If there is genuinely no ancestor, then the URL should stay until the platform can express the removal, or the prune should be scoped down to the subset where a destination exists.
The manifest
Whichever route you take, keep it in a file. A from, to, status CSV is the artifact your developer applies and the artifact you audit against afterwards:
from,to,status,campaign,applied_at,verified_by,note
/products/desk-lamp-classic,/products/desk-lamp,301,prune-2026-10-01,2026-10-06,curl -I,replacement SKU
/collections/clearance,/collections/sale,301,prune-2026-10-01,2026-10-06,curl -I,reorganised collection
/products/legacy-desk-lamp,,410,prune-2026-10-01,2026-10-06,curl -I,no successor, no inbound links found
/collections/spring-2019,,410,prune-2026-10-01,2026-10-06,curl -I,expired campaign, no inbound links found
/products/promo-widget,,410,prune-2026-10-01,2026-10-06,curl -I,never indexed, soft 404 since 2024
/products/catalogue-2018,/collections/all-products,301,prune-2026-10-01,2026-10-06,curl -I,weak ancestor, review next quarter
The empty to column is doing real work. It means 410, and it means nobody is pretending there was a successor. The seventh row is the one to look at twice: a redirect to an ancestor that is barely better than the homepage is not obviously an improvement, and flagging it for review next quarter is more honest than shipping it silently.
Verify the applied result, not the file. A rule that parses is not a rule that works, and the difference shows up in the applied log rather than in the diff.
What to do next
Work out your inbound links before your statuses, not after. Crawl, group by pattern, and for each pattern you intend to retire, establish whether anything internal points at it. That single question is what separates a clean prune from the kind that quietly breaks navigation.
Then check what your platform can serve. If it is 301-only, plan destinations for every URL you retire or leave the URL alone. Do not plan a 410 you cannot deliver.
Apply in batches, keep the manifest, and verify a sample after each batch. Pruning is reversible, which is the one genuinely good property of doing it properly.