mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
https://www.php.net is the canonical web site address now
This change is needed so that https://www.php.net/git-php.php does not end up in a redirect loop.
This commit is contained in:
@@ -6,7 +6,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
|
||||
|
||||
// Force the account requests to php.net
|
||||
if (!is_primary_site()) {
|
||||
header('Location: http://php.net/'.$_SERVER['BASE_PAGE']);
|
||||
header('Location: https://www.php.net/'.$_SERVER['BASE_PAGE']);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ function is_primary_site($site = FALSE)
|
||||
{
|
||||
global $MYSITE;
|
||||
if (!$site) { $site = $MYSITE; }
|
||||
return ($site == "http://www.php.net/" || $site == "http://php.net/" );
|
||||
return ($site == "https://www.php.net/" || $site == "https://php.net/" );
|
||||
}
|
||||
|
||||
// Returns true if the current (or specified)
|
||||
|
||||
Reference in New Issue
Block a user