mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-01-19 00:57:53 +00:00
use codeberg.page for production
This commit is contained in:
parent
017b5852e0
commit
91e8a89fb6
2 changed files with 3 additions and 3 deletions
|
@ -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://<your_username>.codeberg.eu/</code>
|
||||
<code style="margin-top: 15px;">https://<your_username>.codeberg.page/</code>
|
||||
</div>
|
||||
|
||||
<div class="elevated">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue