1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

fixes #3359 changed default redirect code from 302 to 301 for better seo compatibility

This commit is contained in:
Achim Ennenbach
2018-08-23 09:21:38 +02:00
parent deeaf51cdf
commit 60060cff55

View File

@@ -3559,7 +3559,7 @@ class e107
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3
* @see https://tools.ietf.org/html/draft-reschke-http-status-308-07
*/
public static function redirect($url = '', $http_response_code = 302)
public static function redirect($url = '', $http_response_code = 301)
{
self::getRedirect()->go($url, true, $http_response_code);
}