joomla-cms
joomla-cms copied to clipboard
J4.2.2 Joomla gives 301 Status code for 404 Pages
Steps to reproduce the issue
Turn on URL Collecting in the redirect Component and go to your Joomla Website and type in something not existing after the domain, something like yourdomain.com/sudlsdblsdvblhsldh
Expected result
The site is recorded as 404 Error
Actual result
Site is recorded with 301 Status Code

System information (as much as possible)
I tested this on J.4.2.2 Core, no extensions, just Cassiopeia Also tested on other websites with different templates with same result
In Joomla 3.10.11 is the same
Appears that the table shows "the future" of the entry and not the real status code. I would recommend to write 404 in the status unless a redirect is added, then it can show 301.