commit b7f5dca7bc9d1224b616f8dee559e667ed3ab2c2
parent 7ca6ddf90f5d26f3e2e9129a8c69fee1c8093544
Author: Florian Kaldowski <flokX@users.noreply.github.com>
Date: Sat, 27 Apr 2019 10:13:01 +0200
Update redirect.php
Don't count the index access here, because it's done in the index.php
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/redirect.php b/redirect.php
@@ -33,7 +33,6 @@ if (array_key_exists($short, $config_content["shortlinks"])) {
exit;
} else if ($short === "") {
header("Location: index.php", $http_response_code=301);
- count_access($base_path, "Index");
exit;
} else {
header("HTTP/1.1 404 Not Found");
@@ -77,7 +76,7 @@ if (array_key_exists($short, $config_content["shortlinks"])) {
</ol>
</nav>
<h1 class="mt-5">404 | Shortlink Not Found.</h1>
- <p class="lead">The requested shortlink <i><?php echo $short; ?></i> was not found on this server. It was either deleted, expired, misspelled, or eaten by a monster.</p>
+ <p class="lead">The requested shortlink <i><?php echo $short; ?></i> was not found on this server. It was either deleted, expired, misspelled or eaten by a monster.</p>
</div>
</main>