Is there a better way of managing URL structure in PHP without using framework? Codeigniter for example have a very nice and SEO friendly URL structure. Is there a simple way to achieve this effect.
I am looking for a URL structure like example.com/vehicles/two-wheeler/bike/
Codeigniter has got their library backing this up, they also explode the url and then the first part after the domain name will be the controller ( which is a subclass of CI_Controller) , the second one ( if any ) will be the public method within that controller. and the rest of the segments are parameters to the called method
this approach is the only way I guess.
When you explode the url you need to check the length of the array so you know what you are looking at and you just parse away.
This was of great help to me aswell. my friend was talking about this and now i understand how to implement this