410 is a standard HTTP status code indicating that a requested resource is no longer available at the server and no forwarding address is known.
Questions tagged [http-status-code-410]
94 questions
1
vote
0 answers
Magento - 410 Status Header for Deleted Products
My magento store experiences a high amount of products that get added and then deleted. I have been asked to implement a 410 status code on these deleted pages but I am unsure how.
Looking at Magento's core code I can see it handles 404's like so in…

odd_duck
- 3,941
- 7
- 43
- 85
1
vote
1 answer
How do i set a 410 status for any page with a .html file extension?
I had a site which became a victim of some spam hacks. This is all resolved, I am now just trying to set a 410 status for these pages which are part of Google's index. They 404 right now but I want them gone as quick as can be. Thankfully they all…

Robert E
- 700
- 3
- 16
- 29
1
vote
2 answers
How to set a 410 HTTP Status Code in MODX
MODX redirects all not found pages to a 404 status code. Pages that are gone forever need to be set with a 410. Google Webmaster constantly checks for non existing pages in Crawl Errors with 404 responses.
Setting a 410 in .htaccess still results in…

MCSharp
- 1,068
- 1
- 14
- 37
1
vote
0 answers
Custom 410 Error Handler
After a virus attack on a shared server added 180 links to a client's website and I spent hours manually removing them, I would like to thwart any similar future attacks by including a generalized 410 Handler. I began by modifying global.asax.cs to…

ron tornambe
- 10,452
- 7
- 33
- 60
1
vote
1 answer
rails 4 api rspec test http status code 410
I am trying to build the correct rspec test to verify my 410 status code handler is working. Here is what the route catch all looks like:
match '*not_found', to: 'error#error_404', via: :all
My simple error controller:
class ErrorController <…

Chris Hough
- 3,389
- 3
- 41
- 80
1
vote
1 answer
410 Gone error after WordPress update
Last night I updated joinordie.com to WP 3.9.1 via the dashboard and today the site gives a 410 Gone error. I'm not certain that the issue is WordPress but it seems likely due to the timing, right?
Gone The requested resource / is no longer…

ryanve
- 50,076
- 30
- 102
- 137
1
vote
2 answers
Http Status Code 301 to a page that return 410
I have been asked by a client to return a 410 Status code for some URLs in a previous version of there site.
I have two options for how to programe this (based on constraints outside the scope of this request)
Option 1 this is easy to implement: use…

StocksR
- 983
- 6
- 22
1
vote
3 answers
How to 410 all urls with .html extension in htaccess
I want to 410 all urls with .html extension.
say xx.html, yy.html (all with .html).
How do I acheive that with htacess Rewrite or redirect 410 rules?

Helen M
- 11
- 4
1
vote
1 answer
HTACCESS / ErrorDocument - How to serve 410 instead of 403
Can anyone please tell me how to server 410 instead of 403 (without serving any html page in 403)?
Like instead of:
ErrorDocument 403 /403.html
we need something like this:
ErrorDocument 403:410 #/i.e. 403 will show default browser's 410/Gone…

Raheel Hasan
- 5,753
- 4
- 39
- 70
1
vote
1 answer
410 a bunch of html pages in IIS
I need to do a 410 Gone on a bunch of html pages for a site running on IIS. Is there a simple way to do them all at once, like an htaccess file, or do I have to do it one at a time in IIS?

Geo
- 292
- 1
- 4
- 12
0
votes
3 answers
PHP 410 redirect
I'm using WordPress and I would to redirect all unauthorized users to the homepage.
In order to do so in the header file I put (at the begin of the file) the following PHP code:
if (bp_current_component() != ""
&& bp_current_component() !=…

pAkY88
- 6,262
- 11
- 46
- 58
0
votes
0 answers
How can I use htaccess to redirect URLs containing a specific word to 410 error?
recently I develope a new cms and need to redirect 410 some urls that contains specific word which had been created from my old Cms
some url like the…

Hamed
- 1
0
votes
0 answers
How to resolve this Unauthorized request (401 Response)?
I am trying to do some scraping from websites using GET and POST methods, but now I am facing a new challenge.
I am trying to get data from a credit simulator, I found this portuguese site…

Carolina Saad
- 1
- 3
0
votes
0 answers
How to setup 410 urls using NextJS & Vercel?
After a website redesign, I am attempting to set over 1000 URLs to a 410 status code. However, as I am using NextJS and Vercel, which do not have an .htaccess file, I am facing difficulties in achieving this.
I attempted to create a vercel.json file…

FloJDM
- 328
- 3
- 12
0
votes
1 answer
Set header 410 to parameter can remove index from serp?
i need to set a 410 for pages that contains parameter stats with "?apple".
I try this code :
i have some page link like : webiste.com/?apple ,…