CodeIgniter Forums

Full Version: Support only segment-based URLs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It is about removal $config['enable_query_strings'] and related options and code.

The mentioned configuration option enables URLs like: I have not seen a public project that uses this.

By default URLs are segment-based, SEO friendly: Let us support only them.
Before I cast a vote, I would like to hear arguments pro vs con for eliminating the query string url ability.

My preference is the segment based url, but that is because it simply makes more sense in an MVC framework.  That being said, is there an argument to be made for using query string urls?

I'm not saying either url format is good or bad, so I don't want to be the subject of a flame war about this topic.  What makes sense?  Are there situations where query string url format is better than segment based?  If so, why do you think so?  If not, again please tell me why you hold that opinion.
I am marking some topics that may have relations to this one:
"Add URI Language Identifier to core?" -
"Magic Routing toggle" -
As far as I know there are no real draw backs against only segment-based URLs.
The advantages:
- More search engine friendly (although you can read in a lot of places this is not a valid argument anymore)
- Easier for end users to understand / more logical and meaningful
- It's prettier (Am I really saying this?)

Is there more? Is there any reason not to have segment-based URLs only?

But is the idea to have the Codeigniter framework handle this entirely, or is it okay to still work with a .htaccess file?