Erm, sorry. Posted this very quickly and pretty late as well. Still pretty late but I've gotten some sleep so let me try to explain more in detail:
I currently have a script named article.php which is called like so:
www.mysite.com/article.php/id/41
To extract the "/id/41" section of the url above I would use the $_SERVER variable.
However, I would like to rename article.php to index.php so the new url would just be:
www.mysite.com/id/41
My first thoughts would be that it would still work.. that mysite.com would expand into mysite.com/index.php and the rest would be added on.
However, as it logically should, it parses "/id/41" as subdirs and its looking for those subdirs and is thus giving a 404 not found error.
Is there a way to accomplish the same behavior?
I remember reading once in an article on Zend about an apache setting which would achieve what I'm looking for. I believe it basically kept going down levels until it found a working script and then executed that along with the extra path info. IE: It checks mysite.com/id/41/ and it doesnt work so it checks mysite/id/ and since that doesnt work it then checks mysite.com/ which is a match, and then it also sends /id/41/ along to be avaliable in the $_SERVER variable.
Thanks for your help and sorry for the confusion.