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.
84
questions
1
vote
1
answer
49
views
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 ...
0
votes
1
answer
15
views
Different servers receive 200 and 410 status codes for the same URL
I am trying to access a website's API by Python's request library.
This is done from different servers (hosted by Hetzner). For some reason, one of the servers is getting 410 response status code, ...
2
votes
1
answer
56
views
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 ...
0
votes
1
answer
109
views
410 redirect for all the subdirectories
Via htaccess have to give a 410 gone to all the subdirectories inside the mywebsite.com/tag/ folder. I have tried many codes but nothing worked
EXAMPLES:
https://www.mywebsite.com/tag/piazza/feed/
...
1
vote
1
answer
29
views
htaccess - Set all EN pages to statuscode 410
I'm trying to set all EN pages of a website to the statuscode 410. The URLs look like this:
https://example.com/en/terms-and-conditions/
https://example.com/en/sitemap/
https://example.com/en/category/...
1
vote
0
answers
73
views
What causes Python Pytube to send me a HTTP ERROR 410 each time
I want to make a small python project and I am quite new with it. So I thought a youtube-downloader is a funny project to go by. So I looked at the documents about how to and installed everything ...
0
votes
1
answer
85
views
NGINX return 410 for deleted CSS and JS files
I have a problem with a plugin I've deleted, apparently the cache on the users browser still send request for some JS and CSS files that are gone, the problem is that this is causing a lot of 404 ...
1
vote
1
answer
301
views
Return Https Status Code 410 Error for all Website Pages
I want to return 410 errors from my whole website pages so how to do this in just a few lines of code. I have used this syntax Redirect 410 [page-path] in .htaccess file but it is just to block one ...
0
votes
0
answers
95
views
In drupal 8 how i can create 410 page status for my pages unpublished
For unpublished pages, the current behavior is a 404 error,
I wish to have an 410 error only for the pages which were previously published and subsequently unpublished.
Is it feasible ?
Thank you.
2
votes
1
answer
485
views
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 ...
0
votes
0
answers
83
views
410 Gone error if I insert "shell_exec" or "$_SERVER" inside an HTML input form
I have this very simple web HTML form on my web hosting:
<form method='post' name='myForm' action='saveForm.php' enctype='multipart/form-data'>
<input type='text' name='title' value="&...
1
vote
0
answers
379
views
I need to create a 410 "gone"' for Wordpress Blog and modify htaccess file with the proper code on Cpanel
I created a WordPress page a while back and I entered the slug incorrectly so I modified it recently.
There was just an extra number at the end of the URL that shouldn’t have been there and I just ...
2
votes
1
answer
297
views
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 ...
0
votes
0
answers
52
views
OPENCART: Blog module doesn't invite picture Why?
I have a Wordpress blog module installed on my Opencart 2.2.0.0 site. Links are working, but it does not show the thumbnail pictures related to the specific articles. GTmetrix shows 404/410 error. How ...
0
votes
1
answer
705
views
Strange 410 http gone using python urllib not reproductible in wget
I am using urllib in python3 to fetch some images from my server:
import urllib.request
import urllib.error
try:
resp = urllib.request.urlopen(url)
except urllib.error....
1
vote
0
answers
121
views
How can I avoid a Bad Request, for a URL, when it does not appear in the Source Code?
I have just used Google Developer Tools, to perform a site Audit. The Audit is suggesting to fix/remove Broken links to the following resources:
https://www.example.com/wp-content/themes/fonts/...
0
votes
1
answer
285
views
is it possible to send 2 http status codes for 404 error page and redirect to homepage [duplicate]
in .htaccess file, is it possible to send 410 status code for 404 error page and then immediately redirect to homepage?
for example, when search engine crawl a 404 page, server send 410 status code ...
0
votes
1
answer
159
views
Redirecting 404 [Not Found] Error To Homepage And Before Redirecting To Home Page, Tell Search Engines 404 Page is Gone[410] Using .htaccess
I googled and searched on stack over flow but i not found my answer.
in Google webmaster Tools, My site have 58,842 Not Found[404] URL Errors. I want all 404 pages redirect to home page with 410 ...
0
votes
1
answer
583
views
410 redirect url with dynamic GET parameters
Need make a redirect to 410 server response from this page - http://example.com/product_info.php?products_id=1
Tried many options, but they did not work, for example this:
RewriteCond %{QUERY_STRING} ...
0
votes
1
answer
935
views
Difference in behaviour between HTTP Status code 410 and other codes w.r.t Angular 5
Backend: Java
Frontend: Angular 5
Consider this:
The frontend makes an HTTP request to the backend.
The backend returns an HTTP Status code as response to the frontend's request.
For error-handling ...
1
vote
1
answer
215
views
410 redirect working for index.html but not for index.php
I have the following folder structure:
~ $ ls -1a ./html/.htaccess ./html/brochure_en/
./html/.htaccess
./html/brochure_en/:
.
..
index.html
index.php
The content of the .htaccess file is:
~ $ cat ...
5
votes
1
answer
989
views
Server giving 410 error for resource that definitely exists in the correct directory
I am creating an e-Commerce site, I had been using Magento previously but am changing to a custom built site instead.
On this site, I had created a page called create_account.php, this was fine for a ...
2
votes
1
answer
391
views
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/...
1
vote
0
answers
821
views
LinkedIn 410 error code while authentication and Graph APIs
We have an app with LinkedIn and implemented server side authentication for generating tokens. Since 22nd march 2018, all our requests to LinkedIn API endpoints are failing. We could not either sing ...
1
vote
0
answers
60
views
Google Webmaster showing 410 on pages removed 6 years ago
We redeveloped a site in 2012 that had been a simple HTML page catalog site. It became a dynamic, SOLR-driven site under the same domain name. The site content is updated daily (although not all ...
1
vote
1
answer
912
views
How to add status code 410 to drupal for deleted content to improve SEO?
We have a drupal based job board on which the jobs listings are updated via automatic imports every few days and some jobs are deleted in the process.
google search console shows errors for the ...
0
votes
1
answer
95
views
Add status code 410 for missing images in Drupal 6
I need to send status 410 for missing images instead of 404, in Drupal 6.
For example I have a image link as https://www.example.com/our-locations/directory/sub-directory/files/xyz.png which no longer ...
0
votes
0
answers
72
views
.htaccess conditional 410 with special characters
Our website was recently hacked with spam content, and going through the cleanup process I'd like to create 410 rewrites for them.
The URLs in question are top level, so can't specify by directory, ...
0
votes
2
answers
127
views
How can I check the 410 status of an iframe?
I'm building a page that uses the Slideshare API to pull a limited set of presentations from a specific Slideshare user and output a series of iframes with those presentations embedded.
For the most ...
0
votes
1
answer
864
views
Twitch title change via api
I have a little chat bot for twitch and I want to make now a function where you can change the stream title.
My function looks at the moment so:
public changeTitle = (new_title: string, callback: ...
0
votes
1
answer
813
views
Return 410 Error Based on Part of Query String in ASP.NET MVC
Looking for a method we can use in our ASP.NET MVC-5 IIS-8 site to return a 410 error response (gone) based on a list of phrases contained in the querystrings.
Why? We're receiving a few hundred ...
0
votes
1
answer
4k
views
The remote server returned an error: (410) Gone in C#
I have a web API2 application which is consumed by a third party application. When the application hits my end-point, my application send oAuth credentials for authentication and gets the results from ...
1
vote
1
answer
1k
views
htaccess redirect 410 for URL that contains com_virtuemart
In .htaccess how can I do a 410 redirection for all URLs with com_virtuemart.
Anything like:
index.php?page=shop.browse&option=com_virtuemart&search=GO&search_category=63&keyword1=43
1
vote
1
answer
563
views
Nginx equivalent of Apache ErrorDocument 410
With Apache we've sometimes made use of the 410 GONE http status code to indicate that resources have gone away to crawlers etc alongside an html page for human visitors.
We've either used something ...
57
votes
6
answers
58k
views
What are the possible reasons to get APNs responses BadDeviceToken or Unregistered?
When sending notifications to iOS users, for some of them I get response status code 400 (BadDeviceToken) or code 410 (Unregistered).
From Apple documentation about "BadDeviceToken":
The specified ...
1
vote
1
answer
165
views
Redirecting a page to 410 when a more global redirect is taking precedence
We've got a couple redirects in place sending everything inside member.php (member profiles) to the forum home page:
RewriteRule ^member.php/(.*)$ https://www.domain.com/interact/ [L,R=301,NC]
...
2
votes
1
answer
281
views
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 ...
0
votes
1
answer
217
views
Load a the page itself when 410 error is send intentionally for SEO purposes
I have got a website with lots of products which can be bought by clients.
I have implemented an adding to cart button which adds the product to a Session variable after clicking on it. A part from ...
2
votes
0
answers
661
views
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 ...
2
votes
1
answer
4k
views
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 ...
0
votes
3
answers
497
views
error 301 versus 410 when page deleted
before when I deleted a page, I was them redirected (301) this page to the category page, but in google webmastertool, it said that I had too many "soft 404"
so recently I changed this and send a 410 ...
1
vote
0
answers
1k
views
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'...
0
votes
1
answer
152
views
Set 410 status in unique scenarios
I have discovered some of my dev sites have been indexed by Google. Somehow the robots.txt was removed. How can I tweak my .htaccess to give a 410 status if the visitor is the google spider bot OR the ...
1
vote
3
answers
2k
views
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. ...
1
vote
1
answer
674
views
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 ...
37
votes
2
answers
40k
views
Alternative for https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2
These days I noticed that Youtube API which I'm using on my project is no longer available, e.g.
https://gdata.youtube.com/feeds/api/videos/dLEk9yiXVQs?v=2
returns HTTP 410 response code which means ...
1
vote
2
answers
596
views
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 ...
11
votes
1
answer
10k
views
Difference between 404 and 410 error code
I have read about many error code but I am little-bit confuse about Error code 404 and 410. I didn’t distinguish till now what these errors exactly pretend.
0
votes
0
answers
124
views
How to match file name with a space in it in .htaccessfile
I have a file in my server named "Project orgstr2.pdf". I have to throw 410 response code for it. To do this I wrote following rewrite rule
RewriteRule Project\s*orgstr2.pdf - [G,NC]
But the issue ...
3
votes
2
answers
3k
views
Set 410 - STATUS GONE for specific url
Our company's SEO expert asked me to set some particular pages to 410 - status gone.
I have searched about declaring 410 urls in .htaccess but I'm very confused, cause I don't understand if I have ...