aboutsummaryrefslogtreecommitdiff
path: root/engine/handlers/page_handler.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/handlers/page_handler.php')
-rw-r--r--engine/handlers/page_handler.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/handlers/page_handler.php b/engine/handlers/page_handler.php
index bfdb0cee3..7b1b95459 100644
--- a/engine/handlers/page_handler.php
+++ b/engine/handlers/page_handler.php
@@ -32,7 +32,9 @@ require_once(dirname(dirname(__FILE__)) . "/start.php");
$url = current_page_url();
$new_url = preg_replace('#/pg/#', '/', $url);
+
if ($url !== $new_url) {
+ die('site');
header("HTTP/1.1 301 Moved Permanently");
header("Location: $new_url");
}