90 questions
0 votes
1 answer
110 views
how to rewrite 410 .htaccess for old URL’s
I changed the entire website content and got into a script app from WordPress now I can see many 404s in the Google search console remain from the old website for 5 months in console and not deleted, ...
0 votes
1 answer
111 views
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 :<?php if (strpos($_SERVER['REQUEST_URI'], '?apple') !== false) { header("HTTP/1.0 410 Gone&...
2 votes
1 answer
103 views
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 ...
1 vote
2 answers
2k views
"The page you requested was removed" with 410 and redirect
I have following requirement: the user comes to a job page in our customer's website, but the job is already taken, so the page does not exist anymore the user should NOT get a 404 but a 410(Gone) ...
0 votes
1 answer
17 views
Need help for a regex : set-publicitaire-securite-enfant/objet-test/35687
I have to process a large set of 404, they must match with this type of url : set-publicitaire-securite-enfant/objet-test/35687 Before the first slash you can find any type of character, including ...
7 votes
1 answer
284 views
Outputcache and 410 status response not working
I would like to throw a 410 status code for a page that does some database lookups. However it seems that outputcache only caches 200 status code pages. Is there anyway around this? I want to cache ...
2 votes
1 answer
2k 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
75 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
185 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
1k 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
62 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
187 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 ...
1 vote
1 answer
413 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
1k 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
301 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.