All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

How to get not encoded search-queries?

albuvee 21 Mar 2014 09:35 question, complete

hi Lodewijk
Is there a way to get NOT-encoded Queries even if the QUERY_STRING-setting isnt deactivated?

We cant change the query_string since we need to hide «index.php?» in our urls to get Pretty URLs (SEO, user-friendlyness etc.).

Do you have any other solutions?

Replies

  1. Low 21 Mar 2014 09:39

    I'm afraid not. The prerequisites of using the non-encoded queries are mentioned here. If you're using the query_string method, then you should use the encoded queries.

    albuvee 21 Mar 2014 09:44

    but there is no other way to hide index.php? than QUERY_STRING ... right?

    that would mean that non-encoded queries are only available with systems that show «index.php?» ?

  2. Low 21 Mar 2014 09:50

    Whether you need index.php? is down to your server setup. Check the uri_protocol setting in your config.php file. If that is set to 'QUERY_STRING', then you need to use index.php?.

    But if it is set to something else, PATH_INFO for example, and your server can handle it, you don't need to use index.php?, but you can just use the example EllisLab provides, which does not include the ?. If that works for you, then you can use GET variables with Low Search and have your index.php hidden.