I have an older PHP project for a client where we use URLs like: www.domain.com/person1 to show a personalized page for "person1." There is PHP code on index.php in the directory for the domain that uses $_SERVER['REQUEST_URI'] to show the correct page info in place of default index content. This has worked fine for years and continues to work fine on the actual web server. See: http://smd.subitomusic.com/Allapavlova
My issue is that I cannot duplicate this on my local server to do some testing and revisions to other parts of the site. My local server is XAMPP and the web host is Apache on Unix. On the localhost Xampp tries to find a directory with the name "person1" and there isn't one so I get a 404 error instead of the code on index.php running.
Temporarily I've made a work-around by using a GET variable on the localhost (my ondex.php code checks for either $_SERVER['REQUEST_URI'] or GET['page'], so at least I'm able to work on the basic page layout and other functionality. But I'd love to know if there's some little thing I'm overlooking to get it work the same way on localhost as on the remote host.
I hope this makes sense. I've done a lot of searching about this but have had trouble finding the right terms to use to search for how to do this.