1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-24 06:19:57 +01:00

Merge pull request #3396 from SimSync/fix_3359

fixes #3359 changed default redirect code from 302 to 301 for better seo compatibility
This commit is contained in:
Cameron 2018-08-26 10:36:55 -07:00 committed by GitHub
commit db976c931b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}