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.

parameters in URL string prevent proper template from appearing

December 30, 2010 9:01pm

Subscribe [3]
  • #1 / Dec 30, 2010 9:01pm

    heaversm

    197 posts

    Hi - I’m trying to implement a google custom search engine on my site. The problem is that whenever I introduce parameters into the URL string via a question mark, the proper template fails to appear. For example, if you submit a search here:

    http://mavdig.com/test/search_page

    using this code:

    <form> 
                  <div id="topSearchBoxWrapper"><input name="searchBox" type="text" id="topSearchBox" value="" /></div> 
                  <input type="submit" class="buttonSearch" value="" /> 
     </form>

    you will be redirected to the default index page for my site. But if you just enter a plain URL with no parameters for the search results page, it comes up.

    http://mavdig.com/test/search_results

    Any idea what might be causing this?

  • #2 / Dec 31, 2010 4:33am

    John Henry Donovan

    12339 posts

    heaversm,

    Open up your /system/expressionengine/config/config.php and change

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

    to

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

    Let us know if that helps

  • #3 / Dec 31, 2010 9:50am

    heaversm

    197 posts

    yes! well, actually, I had to use the

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

    option, but it worked. Thanks, been agonizing over this one for awhile.

  • #4 / Jan 01, 2011 11:14am

    Greg Salt

    3988 posts

    Hi heaversm,

    Glad that John Henry was able to point you in the right direction. Please post back if required.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases