Project

General

Profile

Actions

Feature #93882

closed

[FEATURE]: Allow "Redirects" with Status Code 410 for deleted files and Pages

Added by Anonymous about 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2021-04-08
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:
On Location Sprint

Description

Here is a feature idea which would be really nice to have:

I would like to be able to create "Redirects" without a target but with a status code of 410 to signal "This file is Gone on purpose".
I think a good place to create this would be the EXT:redirect, since this is currently the only place where we can define entries with URLs, that are not associated with any data.

This would require the following steps:
  1. Add the option "410 Gone" to the Status Code Select-Field
  2. Throw a 410 error if the url is requested

One problem I see with this solution is, that error handling (like 404) is handled in the Site Configuration. But we don't necessarily have a site configuration when we respond to a defined url.
On the other hand, we need a solution where the editors can add those urls via the backend. So it can't be completely done via Site Configuration.

One other possible solution would be to have another module behind a dropdown on top of the redirects module for the 410 Redirects specifically, where you have to select a page on which to create the redirects. That way we would always have a siteconfig and could configure the 410 handling as we do with the 404 handling.

I'm interested in your opinion. As soon as we have a prefered solution I will be happy to provide a patch :)


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Task #89563: Add redirect typesNewRichard Haeser2019-10-31

Actions
Actions

Also available in: Atom PDF