diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-11 23:14:09 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-11 23:14:09 +0000 |
commit | e68bf62084b0a90097b3b65d3ef12c2605e09289 (patch) | |
tree | a08e06ca7e3ec0301e318342caeb79155d56a80b /engine/handlers | |
parent | adae1958a95d7e801de91d673e927cac348236d9 (diff) | |
download | elgg-e68bf62084b0a90097b3b65d3ef12c2605e09289.tar.gz elgg-e68bf62084b0a90097b3b65d3ef12c2605e09289.tar.bz2 |
Refs #2991. First round at rearranging and grouping admin menu based upon tasks.
git-svn-id: http://code.elgg.org/elgg/trunk@8654 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/handlers')
-rw-r--r-- | engine/handlers/page_handler.php | 2 |
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"); } |