1
0
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:
Derick Rethans
2019-03-25 14:40:13 +00:00
parent f00d6c0d35
commit b02257864c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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)