[PHP-WEBMASTER] [web-php] master: Force base ref to www.php.net, and set it only once

Author: Derick Rethans (derickr)
Date: 2026-06-10T12:10:19+01:00

Commit: Force base ref to www.php.net, and set it only once · php/web-php@f882125 · GitHub
Raw diff: <?php echo $title ?>

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?>&amp;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()) { ?>