ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE 2.x and Query Strings

July 27, 2010 9:42pm

Subscribe [6]
  • #1 / Jul 27, 2010 9:42pm

    Wes Rice

    103 posts

    I’m using structure on my website. Structure creates page uri’s for me. In EE 1.6.x I could append query strings to the end of my page uri and use php or a plugin to get the value of the query string variable.

    http://www.website.com/url_title/?variable=value

    In 2.x, I cannot do this. It seems as if /?variable=value is parse as a segment. Did this functionality change from 1.6.x to 2.x or is this a bug?

  • #2 / Jul 28, 2010 3:46am

    John Henry Donovan

    12339 posts

    lockwesmonster,

    I am asking the devs about this one and will respond here in this thread when I have a reply. Thank you for your patience.

  • #3 / Jul 28, 2010 12:21pm

    Wes Rice

    103 posts

    Thanks John. Getting variables from url query strings have been CRUCIAL to the success of business, so much so that I would revert back to 1.6.x for their use.

  • #4 / Jul 28, 2010 4:36pm

    Ingmar

    29245 posts

    Thank you for your patience. Our devs are looking into this.

  • #5 / Jul 28, 2010 5:15pm

    Robin Sowell

    13255 posts

    Your server may/may not support it.  But it’s easy to find out- in your system/ee/config/config.php file- find

    $config['uri_protocol']    = 'AUTO';

    Try changing it to PATH_INFO- which is the most likely to work.  Double check your segs and your get array.  And if PATH_INFO doesn’t do it, REQUEST_URI or one of the others may.

  • #6 / Jul 28, 2010 5:47pm

    Wes Rice

    103 posts

    PATH_INFO did the trick. Thanks a ton.

  • #7 / Jul 28, 2010 5:49pm

    Robin Sowell

    13255 posts

    Woot!  And- looks like your question helped out a number of other folks as well.  😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases