Changeset 168

Show
Ignore:
Timestamp:
01/11/08 19:49:58 (5 years ago)
Author:
d0nut
Message:

switched from non-seo to seo? permanent redirect!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • taggingreloaded/files/lib/page/TaggingPage.class.php

    r167 r168  
    9797         */ 
    9898        public function show() { 
     99 
     100                // switched from non-seo to seo? 
     101                if(isset($_GET['tag']) && strpos($_SERVER['REQUEST_URI'], '?tag=') === false) { 
     102                        $url = $this->rewriter->publicParseTagURLs($_GET['tag']);                        
     103                        header("HTTP/1.1 301 Moved Permanently"); 
     104                        header("location: $url"); 
     105                        exit; 
     106                } 
     107         
    99108                // set active header menu item 
    100109                require_once(WCF_DIR.'lib/page/util/menu/HeaderMenu.class.php');