Originally posted by Giaguara
<?php
$req = $_SERVER['REQUEST_URI'];
// Remove rubbish and stf.
$newReq = ereg_replace ('index.php[^?]*', 'index.php', $req);
if (strlen($newReq) < strlen($req)) {
header ('Location: '.$newReq);
header ('HTTP/1.0 301 Moved Permanently');
die; // Don't send any more output.
}
unset($req); unset($newReq);
... ...
?>
, I love that one