summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mirror.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mirror.php b/mirror.php
index 8a61747..206b081 100644
--- a/mirror.php
+++ b/mirror.php
@@ -62,5 +62,9 @@ if (!file_exists($root.'/'.$filename)) {
$mirror = $mirrors[array_rand($mirrors)];
}
}
- header('Location: '.$mirror.$filename);
+ $location = $mirror.$filename;
+ if ($mirror === $tier0_url) {
+ $location .= "?noredirect";
+ }
+ header('Location: '.$location);
}