Set an 410 (or some other) error page from .htaccess
Redirect 410 /example.html
Redirect gone /example/atom.xml
RewriteRule ^example/atom.xml$ - [G,L]
Joomla must show error page correctly
Joomla not show 410 (or some) error, but show 404 error.
If we set same error from native redirect component (in advanced mode) Joomla work correctly.
But set redirect and error from .htaccess is helpful for advanced rules
Labels |
Added:
?
|
Status | New | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-11-22 20:00:40 |
Closed_By | ⇒ | alikon |
Status | Expected Behaviour | ⇒ | Closed |
Closed_By | alikon | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/27113
I don't think there is anything that can be fixed here. Joomla isn't aware that you're trying to use it with Apache's ErrorDocument handler or following a Redirect rule, and there isn't anything passed from the web server to PHP to handle this (actually in your
Redirect 410 /example.html
case Joomla isn't even executed and Apache's error page is displayed when I test it locally).