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

Support archive

Low Search field is redirecting to homepage, not logging search

Moogaloo 20 Jun 2013 10:30 problem, complete

I've set up the Low Search form, just as in the documentation, with a couple collections added that have a couple entries in the relevant channels, but when I try searching for something, it simply redirects to the homepage.

My search template code is:
{exp:low_search:form collection="vlogs|travel" class="search" search_mode="all" result_page="search"}

Reset
Search
{/exp:low_search:form}
- http://cl.ly/image/10241L3P223I

In the bootstrap config.php file I have:
'uri_protocol' => $_SERVER['QUERY_STRING'] ? 'PATH_INFO' : 'REQUEST_URI',

.htaccess file:

# secure .htaccess file

order allow,deny
deny from all

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

#################################################################

# Add a trailing slash to paths without an extension
# Does not redirect for POST items like SafeCracker and the comment form
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]

# Remove index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

#################################################################
# AddHandler php5-script .php

I'm using:
EE: 2.5.2
Low Search: 2.3.1
MAMP: PHP 5.3.2

If you need logins to a dev server, email me at andy@moogaloo.com

Replies

  1. Low 20 Jun 2013 10:38

    Looks like perhaps it's submitting to the index.html instead of the index.php. Can you try and add this to your htaccess file?

    DirectoryIndex index.php index.html

  2. Moogaloo 20 Jun 2013 10:50

    Ah - of course - I had an index.html file in webroot - renamed it and it's working fine now.
    Thanks for that.