// Kill PHPSESS ID in the URL ini_set("url_rewriter.tags",""); //Determine current URL $url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; //Check if PHP is not in safe mode, //and PHPSESSID is passed via URL if (!ini_get ('safe_mode') && preg_match ('/'.session_name().'=([^=&\s]*)/i', $url)) { //Remove PHPSESSID junk and unneeded characters ("&" or "?") at end of URL $url = preg_replace ( array ('`'.session_name().'=([^=&\s]*)`', '`(&|\?)+$`'), '', $url); //Send Moved Permanently header @ header ("HTTP/1.1 301 Moved Permanently"); //Redirect to clean URL @ header ("Location: " . trim ($url)); //End current script exit(); } $findMich = "www."; $pos = strpos($url, $findMich); if ($pos == false) { $url = preg_replace( "/(content-type:|http:\/\/)/im", "http://www.", $url ); @ header ("HTTP/1.1 301 Moved Permanently"); @ header ("Location: ".$url); exit(); } ?>
![]() |
| Start • Sommerurlaub • Wandern • Mountainbiken • Wellness • Surfen • Links und Freunde |
Interessante Klicks
|
| Kontakt & Impressum - alle Rechte vorbehalten |