URL extract ? [solved]
Posted: Mon May 11, 2009 7:33 am
I got a very weird problem I haven't before thought about.
When I call my page with ...index.php or index.php? it displays the same site. I only want to show index.php and when index.php? shows up I want to make a header Location request to index.php. (There is nothing behind the ?)
My problem now is, that I cannot determine if there simply is just the ?
I tried isset and array_key_exists on $_SERVER['QUERY_STRING']) but it seems the array is there nomatter what and therefore both index.php and index.php? always have the same result.
Script_Name displays without ?
So is there anyway to eliminate that ? ?
When I call my page with ...index.php or index.php? it displays the same site. I only want to show index.php and when index.php? shows up I want to make a header Location request to index.php. (There is nothing behind the ?)
My problem now is, that I cannot determine if there simply is just the ?
I tried isset and array_key_exists on $_SERVER['QUERY_STRING']) but it seems the array is there nomatter what and therefore both index.php and index.php? always have the same result.
Script_Name displays without ?
So is there anyway to eliminate that ? ?