Feature #93882
closed[FEATURE]: Allow "Redirects" with Status Code 410 for deleted files and Pages
0%
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.
- Add the option "410 Gone" to the Status Code Select-Field
- 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 :)