NOTE: My terminology may not be entirely correct. I believe StackExchange does something like what I am asking, in case this can make things clearer.
Using PHP on Apache, I would like to handle URLs such as:
http://www.site.com/info/<brand>/<model>/<page>
For example with <brand> = toyota, <model> = camry, <page> = 'safety'
And have all the URLs starting with 'info' (let's say) be handled by a single PHP file like 'info.php' without the URL in the location bar changing.
In other words, someone navigates to:
http://www.site.com/info/toyota/camry/safety
But the code to handle this is in info.php
but the URL in the browser stays
as is. I do not want to have to create all the /toyota/camera/safety directory
structure (there would be 1000s).
My guess is that info.php would get the path components as parameters in order to know what content to serve. So the internal invocation invisible to the user would be:
info.php?brand=toyota&model=camera&page=safety
Seems like the question here are doing something similar since they get URLs like:
http://webmasters.stackexchange.com/questions/13978/how-to-implement-user-friendly-paths-in-php-without-creating-a-file-or-directory
and I presume the path there is not actually created on the server.