Author: Derick Rethans (derickr)
Date: 2026-06-10T12:10:19+01:00
Commit:
https://github.com/php/web-php/commit/f88212520ebdc5e7012e87c119cd2e0a376f460f
Raw diff:
https://github.com/php/web-php/commit/f88212520ebdc5e7012e87c119cd2e0a376f460f.diff
Force base ref to www.php.net, and set it only once
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index 48722edafa..8dc0076126 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -61,9 +61,7 @@ if (!isset($config["languages"])) {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <?php if (!empty($_SERVER["BASE_HREF"])): ?>
- <base href="<?php echo $_SERVER["BASE_HREF"]; ?>">
- <?php endif ?>
+ <base href="https://www.php.net">
<title><?php echo $title ?></title>
@@ -105,10 +103,6 @@ if (!isset($config["languages"])) {
<script type="text/javascript" src="/cached.php?t=<?php echo
$modified?>&f=<?php echo $filename?>"></script>
<?php endforeach ?>
-<?php if (!empty($_SERVER["BASE_HREF"])): ?>
- <base href="<?php echo $_SERVER["BASE_HREF"] ?>">
-<?php endif ?>
-
<?php if (isset($config['meta_tags'])) { echo $config['meta_tags']; } ?>
<?php if (is_primary_site()) { ?>