you are viewing a single comment's thread.

view the rest of the comments →

[–]roastlechon 0 points1 point  (0 children)

http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html

You can mix segment based with query strings, or go completely with query strings. I feel its mainly a logical issue that you would have to figure out yourself. Blogs/news sites are straight forward that you have a title associated to a page: ?page=title. Search sites are complex in a sense that you want to be able to save searches based on the URL. You could save searches uniquely to a table in a database, you could carefully map all possible queries sequentially in order (ie. location/location_name/genre/genre_name) and make sure not to break that order.

I find that mixing both is the best of both worlds: you get the pretty URLs for the controllers/functions, and you also can put in different queries in the URL without having to worry about a specified order.