aboutsummaryrefslogtreecommitdiffstats
path: root/web/redirect.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/redirect.php')
-rw-r--r--web/redirect.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/redirect.php b/web/redirect.php
index 83b6fcc..ddcd2c9 100644
--- a/web/redirect.php
+++ b/web/redirect.php
@@ -22,17 +22,17 @@ if ($url[strlen($url) - 1] == '/')
if (strpos(strtolower($url), ".php") == strlen($url) - 4) {
$url = substr($url, 0, strlen($url) - 4);
$index = strrpos($url, "/");
- $redirect = "/#".cachePath(substr($url, 0, $index))."/".cachePath(substr($url, $index));
+ $redirect = "/#!/".cachePath(substr($url, 0, $index))."/".cachePath(substr($url, $index));
} else if (strpos(strtolower($url), ".jpg") == strlen($url) - 4) {
$index = strrpos($url, "/");
- $redirect = "/#".cachePath(substr($url, 0, $index))."/".cachePath(substr($url, $index));
+ $redirect = "/#!/".cachePath(substr($url, 0, $index))."/".cachePath(substr($url, $index));
} else if (strpos($url, "/cache/") === 0 || strpos($url, "/albums/") === 0 || strpos($url, "/img/") === 0 || strpos($url, "/img/") === 0 || strpos($url, "/js/") === 0 || strpos($url, "/css/") === 0) {
header("HTTP/1.1 404 Not Found");
exit();
} else
- $redirect = "/#".cachePath($url);
+ $redirect = "/#!/".cachePath($url);
header("HTTP/1.1 301 Moved Permanently");
header("Location: $redirect");
-?> \ No newline at end of file
+?>