View Single Post
Old 04-29-2008, 07:33 PM   #2 (permalink)
TlcAndres
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

While I can't be sure if it's a solution to your problem you could use $_SERVER['REQUEST_URI'] to see if theres something after index.php and if there is relocate them to the desired page...here

PHP Code:
function detect(){
  
$uri end(explode('/',$_SERVER['REQUEST_URI']));
  if(
$uri != '' xor $uri !='index.php')
  {
     
header("Location: http://google.com");
  }

Again don't know exactly what you want.
__________________
"What everyone seems to forget is that while knowledge certainly is something - it's the implementation of knowledge that brings power" - Andres Galindo.
TlcAndres is offline  
Reply With Quote