Echo the difference between '/' and '/index.php'
Posted: Tue Jul 31, 2007 10:10 am
For some reason, my site lags when it runs "www.website.com", but loads just fine when it runs "www.website.com/index.php"
Is there a way that I can tell if the URL has the "index.php" in it or not?
I've tried to use the predefined variables REQUEST_URI, SCRIPT_NAME, SCRIPT_FILENAME, and PHP_SELF when I'm on "www.website.com/", but all of these return an index.php in the variable.
The goal that I'm trying to achieve is that if PHP can recognize "www.website.com/", I want to use headers to make it go to "www.website.com/index.php"
Any help on this would be greatly appreciated.
Thanks.
Is there a way that I can tell if the URL has the "index.php" in it or not?
I've tried to use the predefined variables REQUEST_URI, SCRIPT_NAME, SCRIPT_FILENAME, and PHP_SELF when I'm on "www.website.com/", but all of these return an index.php in the variable.
The goal that I'm trying to achieve is that if PHP can recognize "www.website.com/", I want to use headers to make it go to "www.website.com/index.php"
Any help on this would be greatly appreciated.
Thanks.