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:
commit
db976c931b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user