Closed arhimede closed 4 days ago
"301 - Moved Permanently" for non-existing pages?
"301 - Moved Permanently" for non-existing pages?
Yes, as there are few non-existing pages already indexed in google, and we need them removed from there.
So either a 301 redirect to index OR a 404 blank no-content page
If the page does not exist, then 404. (What did not exist before cannot be moved afterwards. 😉)
I suggest a nice and funny 404 page. 😃
It's more about directing pre-existing search results to the right ones: aliases, if you wish to call them that.
The issue is not specific to getlaminas.org codebase. Can be triggered in dotkernel/frontend too .
Any call to $this->url() in a template, on a non-existent route , will crash
Good. Crash and burn and fix promptly
there is a quick fix for getlaminas.org codebase , but will not address the main issue, which is in mezzio-helpers https://github.com/mezzio/mezzio-helpers/blob/5.17.x/src/UrlHelper.php#L157
Will be a PR at mezzio-helpers soon
Bug Report
Summary
https://getlaminas.org/about/%C2%A0 Indexed in google SERP
Current behavior
display error message
How to reproduce
Expected behavior
redirect with 301 to index page