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:
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:
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:
Seems like the question here are doing something similar since they get URLs like:
and I presume the path there is not actually created on the server.