Create a page without placing .php at the end?

php, security

Solution

You'll want to look into URL rewriting. With the commonly used Apache webserver, this is accomplished with `mod_rewrite`.

Problem

I was looking for ways to mimic something I've seen, however I'm really not even sure where to start or how to search for it. Lets say my page was: foo.com/ and my index page could take an argument of: index.php?id=5 What I'm wanting to do is create the following: foo.com/5/ rather than placing index.php?id=5 just use the webstring to pass in the parameters, to hide not only the fact its a PHP page, but to clean up the url a bit more. Is this possible? Cheers

Original source