Bug #94566
open404 page handling is not SEO optimized
0%
Description
Hello,
i think this I celebrate my 15th year working with TYPO3. And still TYPO3 has no good 404 handling.
Current problem appearing on v9.
Let's say we have a site configuration:
site-1 -> base: http://my.url/site-1
site-2 -> base: http://my.url/site-2
Going to http://my.url/site-1/some-not-existing-page leads to a 404 (correct)
Going to http://my.url/site-2/some-not-existing-page leads to a 404 (correct)
Going to ttp://my.url/some-not-existing-page leads to a redircet to site-1 (not-correct)
[ADD_DESCRIPTION_OF_MIDDLEWARE_STACK_PROBLEM_AND_ADD_SOLUTION_PROPOSEL]
I can already guess that some will argument that this is a SEO related issue that is not the responsibility of TYPO3 core. Well if you think so...
Kind regards
Rozbeh
Updated by Benni Mack over 1 year ago
- Status changed from New to Needs Feedback
Hey Rozbeh Chiryai Sharahi,
thank you for your report.
Since http://my.url/ has no site configuration, where do you expect to configure a fallback error handler then or how to solve this issue? If you feel that after 15 years, TYPO3 still has no good 404 handling, I would really like to know what can be improved in your situation.
All the best,
Benni.
Updated by Rozbeh Chiryai Sharahi over 1 year ago
Hello Benni Mack,
I don't remember "situation" back then anymore, but looking at the description I'd say, that from SEO point of view a 30x redirect of every URL which can not be resolved to a site is not correct.
In the given example this is all a redirect:
http://my.url/a -> 30x
http://my.url/b -> 30x
http://my.url/c -> 30x
http://my.url/d -> 30x
http://my.url/f -> 30x
Possible solution imho:
- Introduce a SiteNotFoundErrorHandler
- Dispatch a site-not-found-event, so it can be handled (and document it)
...
Possible last fallback: Take the 404 handling of the first existing site.
This could be done on middleware if not already the case in current TYPO3 versions.
Kind regards
Rozbeh Chiryai Sharahi