Forum Moderators: phranque
I'm moving from example.com?var1=m&var2=m,f&var3=san,lax&var4=r,s but which is a better format to move to?
example.com/m/m,f/san,lax/r,s/
example.com/m/mf/sanlax/rs/
example.com/m/m-f/san-lax/r-s/
example.com/m-m,f-san,lax-r,s/
example.com/m,m-f,san-lax,r-s/
example.com/m.m,f.san,lax.r,s/
...
The requests are generated by the site, and not typed in hand by the user, unless they send it out via email or something.
Which one would you use?
example.com/Mary-Frisco-Los-Angeles-Ride-and-Park
My nonsensical URL is an indicator that the URL's you posted are unintelligible. :-) Think user friendly; make it memorable. Think search engines; it should contain keywords relevant to the topic.
Second, I wouldn't use directory structure unless it's absolutely necessary. When you receive the REQUEST_URI, it's much easier to strip off any google tagging, then split the URL on slashes. Your relevant URL is the last parameter, and you can use it to repopulate your input variables as needed.