Actions
Feature #97948
closedConfigurable status code for SiteBaseRedirect
Start date:
2022-07-14
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
http redirect code
Complexity:
Sprint Focus:
Description
In TYPO3 11.5. when "https://www.example.com" was entered, but all sites have "https://www.example.com/lang-key/", a redirect to the first possible language is done.
The status code responded is a hardcoded 307 "temporary redirect", but in my opinion, in the situation mentioned above, the status code 301 "permanent redirect" would be more appropriate.
The hard coded status code in /typo3/sysext/frontend/Classes/Middleware/SiteBaseRedirectResolver.php should be configurable in the site configuration.
Actions