Forum Moderators: phranque
$uriNoQS=substr($_SERVER['REQUEST_URI'],0,strlen($_SERVER['REQUEST_URI'])-strlen($_SERVER['QUERY_STRING'])-1);
It works fine but it looks like a script that could be replaced by something simpler...
I played with 'SCRIPT_NAME' but it doesn't work because none of the urls of the site I'm developing actually exist (it's all fake URLS redirecting to index.php with a .htaccess). So "/jazz/moo/" script_name is "/index.php" but that's not what I want.
Is there a more direct way then the $uriNoQS php twist?