Project

General

Profile

Actions

Feature #97948

closed

Configurable status code for SiteBaseRedirect

Added by Markus Howald almost 2 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
SEO
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

Also available in: Atom PDF