I'm new to PHP.
I was wondering how one gets from
http://www.FictionalWebsite.com/info.php?food=hamburger
to
http://www.FictionalWebsite.com/eat/hamburger
so this is like a friendly URL thing.
Now on the basic point,lets suppose eat.php is a script that looks up "hamburger" in the database, and then gets all its info ( Cost, Weight, ETC ).
So food=hamburger tells it what to search.
How do you make it a Friendly URL?
from what I see, /eat/hamburger cant really tell you anything, ( unless you say, take the URL string an strip everything up to "hamburger" ), but how does http://www.FictionalWebsite.com/eat/hamburger direct to
http://www.FictionalWebsite.com/info.php?
from the little I know, this isnt PHP, I think its something to do with .htaccess, but I might be wrong. ( I'm posting here cause as far as I know, .htaccess dosent have any "language" of its own, and because there I saw a thread regarding to URL here