What 410 Gone Means
410 is a client error that states a fact about the address: there used to be something here, it was removed deliberately, and there is no forwarding address. Clients may treat the answer as final and stop asking.
If you are a visitor and see 410, the page is not missing by accident. Search the site for a newer page on the same subject, or look for an archived copy; reloading will not bring it back.
410 Compared with 404
| 404 | 410 | |
|---|---|---|
| Meaning | Not found now | Removed for good |
| Could return | Maybe | No |
| Set by | Server by default | You, on purpose |
A 404 happens on its own for any address without a file or route. A 410 never does: you have to configure it. Common 404 causes are in 404 Not Found.
How Search Engines Treat It
Both 404 and 410 lead search engines to drop the address from their index after they have crawled it again. Google documents that it treats all 4xx codes except 429 the same way, so a 410 mainly states your intent more clearly. Neither code harms the rest of the site; a site with many removed pages is normal. What does harm visitors is a removed page that still has links pointing to it from your own pages, so update those.
When to Use 410
- Deleted content with no replacement: an ended campaign, a discontinued product with no successor, an outdated announcement.
- Spam or hacked pages that were injected into the site and are now removed.
- An old section that was closed as a whole.
When a Redirect Serves Visitors Better
If a page has a clear successor, such as a newer version of a product or an updated article, send a permanent redirect to it instead; the difference between redirect types is explained in 301 vs 302. Do not redirect every removed page to the home page: visitors land somewhere they did not ask for, and search engines may treat that like a 404 anyway.
Return 410 in Nginx
location = /old-page {
return 410;
}
location ^~ /old-shop/ {
return 410;
}The first block covers one address, the second everything under a folder. To show a friendly page with the code, add error_ in the server block and create that file. Run sudo nginx -t before reloading.
Return 410 in Apache
In the site configuration or an .htaccess file:
Redirect gone /old-pageFor a pattern, use mod_G flag. In an .htaccess file the pattern has no leading slash; in the site configuration it starts with ^/old-shop/:
RewriteEngine On
RewriteRule ^old-shop/ - [G]A custom page is set with ErrorDocument 410 /gone.html. How .htaccess files work is in .htaccess file.
Check the Result
curl -I https://example.com/old-pageThe first line should show 410. If it shows 200, a rule earlier in the configuration or the application itself answers first; if it shows 404, the 410 rule does not match the address. Check spelling, trailing slashes, and the order of location blocks. The full list of codes is in HTTP status codes explained.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations