use codeberg.page for production

This commit is contained in:
Andreas Shimokawa 2021-04-28 12:52:33 +02:00
parent 017b5852e0
commit 91e8a89fb6
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@
<div class="header">
<div class="name">Codeberg Pages.</div>
<div class="description">Static pages for your projects.</div>
<code style="margin-top: 15px;">https://&lt;your_username&gt;.codeberg.eu/</code>
<code style="margin-top: 15px;">https://&lt;your_username&gt;.codeberg.page/</code>
</div>
<div class="elevated">

View File

@ -36,11 +36,11 @@ if ($tld === "org") {
} else {
$owner = strtolower(array_shift($request_url_parts));
if (!$owner) {
header("Location: https://codeberg.eu");
header("Location: https://codeberg.page");
exit;
}
if (strpos($owner, ".") === false) {
$h = "Location: https://" . $owner . ".codeberg.eu/" . implode("/", $request_url_parts);
$h = "Location: https://" . $owner . ".codeberg.page/" . implode("/", $request_url_parts);
if ($_SERVER['QUERY_STRING'] !== "")
$h .= "?" . $_SERVER['QUERY_STRING'];
header($h);