1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02: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

View File

@@ -3559,7 +3559,7 @@ class e107
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3
* @see https://tools.ietf.org/html/draft-reschke-http-status-308-07 * @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); self::getRedirect()->go($url, true, $http_response_code);
} }