Questions tagged [http-status-code-410]

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.

94 questions
3
votes
2 answers

How to tell google that a specific page of my website disappeared and won't come back?

I have a website where 50% of the pages have a limited lifetime. To give an idea, 4.000 pages appear each week and the same amount disappears. By "appearing" and "disappearing", I mean that the appearing pages are completely new ones, and…
Elvex
  • 656
  • 5
  • 22
3
votes
1 answer

Returning 410 error on specific links on Nginx

We' ve currently changed all the structure of our website and moved it from Apache to Nginx. For many links we've set properly 301 redirects, still many pages that don't exist anymore are returning 404 errors. We've a specific list of links that we…
Lightbox
  • 71
  • 2
  • 5
3
votes
4 answers

Return Status Code 410 with Symfony for Google Bot

As Google Bot is visiting one of our websites with wrong URLs, I constantly get Server errors bugging me as Administrator (The reason is that I accidentially submitted a wrong sitemap 3 months ago. Yes, I have resubmitted, deleted, resubmitted…
3
votes
1 answer

How do I set 410 for entire website?

We have a number of websites that have now been closed down and deleted however are still indexed in Google, even though they are returning a 404. I want to set http 410 for everything on the domain, how would I do this in the htaccess? Use…
2
votes
1 answer

HTACCESS 301 : How to redirect all urls to HTTPS except spammy urls with a specific character?

I posted a question one month ago with great answers (HTACCESS 403 : How to block URL with a specific character?) : HTACCESS 403 : How to block url with a specific character? The problem is, I migrated my website HTTP to HTTPS and I would like to…
2
votes
1 answer

How do I implement a 410 header in .htaccess to remove hacked URLs?

My site got hacked recently and has over 3 million pages now when it only has 30 pages (see screenshot). How do I implement the correct 410 header in .htaccess? I think the best tactic is to 410 all pages that contain a number OR .htm OR .html as…
2
votes
1 answer

How do I 410 a pattern of toxic Prestashop URLS?

I've been trying to 410 a pattern of a few thousands toxics URLS that got indexed by Google for one of my clients. I want every urls of the website that contain ?% to send a 410 response code so they got de-indexed. Example of an URL…
2
votes
1 answer

How to display custom 410 page with nextJs

I'm trying to handle 410 codes on my nextjs app. I've setup a 404 page already as it's easily managed by nextjs. But I can't figure out how to display a custom 410 page. I've tried to go through the _error page and check the httpStatusCode but it…
BPC
  • 96
  • 1
  • 8
2
votes
1 answer

ASP.NET MVC View not returned in prod environment

I have a strange problem and I'm looking for some debug pointers. When a page has been removed from a site I do the following: Response.StatusCode = 410; Response.Status = "410 Gone"; return View("PageRemoved"); In the dev environment it works…
Guy
  • 65,082
  • 97
  • 254
  • 325
2
votes
2 answers

Coldfusion Redirecting a page with statuscode 410

my web site generate the links dynamically and after some period of time the links will be expired and will be no more valid. I redirect such links to a static page with a statuscode 301 which for google only means that the old link should be…
user160820
  • 14,866
  • 22
  • 67
  • 94
2
votes
1 answer

Make the entire subdirectory 410

I have a subdomain which has been indexed in Google. The pages (a WordPress development project) are no longer there, so I want Google to realise that. I figured that a 410 is the way to go, but rather than putting them on individual posts that no…
ask
  • 25
  • 6
2
votes
1 answer

Error 410 gone after moving from local server to live

I have created a site and everything is working fine locally in WAMP, however, I moved everything to my shared hosting account and am getting a 410 error: Gone The requested resource /admin/product_edit_parse.php is no longer available on this…
Paddy Hallihan
  • 1,624
  • 3
  • 27
  • 76
2
votes
1 answer

How to set a custom 410 page on liferay

I want to set a custom 410 page on liferay. I have already configured that for a 404 page via the file portal-ext.properties layout.friendly.url.page.not.found=/html/portal/404.html But I don’t know how to do it for a 410 page. Thanks for helping
2
votes
0 answers

410 gone error response from IIS

I've recently come accross an issue with IIS responding with a 410 status code when a request query string exceeds 500 characters. The application is an asp.net web app using the classic managaged pipline. I've already tried increasing the…
2
votes
0 answers

Return 410 (Gone) for URLs containing hash symbol

A previous development of a flash based site used URLs of the form http://www.example.com/#! These URLs have been indexed by Google but I need these URLs to be removed from the search index. Reading the Google documentation, I should be generating a…
user1952133
  • 316
  • 3
  • 7