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

Support archive

search results going to 404 page

dvrsnarytactic 9 Jul 2014 18:50 question, complete

Hello.

For some reason on one site using Low Search, everything works wonderfully. I set up a search for another site exactly the same way and I'm getting directed to a 404 page. The only difference is on the working site, I've the 404 page set to none while on the second I've a custom 404. My code looks like this:
For the search:
{exp:low_search:form result_page="/search/results" form_id="search"}

{/exp:low_search:form}

Search results page:
{exp:low_search:results}
{if count == 1}

{if low_search_keywords}Searched for {low_search_keywords}.{/if}
Total results: {absolute_results}


{/if}

{title}
{if low_search_collection_id}

Found in {low_search_collection_label}, posted on {entry_date format="%M %d, %Y"} .


{/if}
{low_search_excerpt}

{if page_url}
View Result
{if:else}
View Result
{/if}


{if low_search_no_results}

Sorry, your query did not return any results.
Check your spelling or try a different search term.


{/if}
{/exp:low_search:results}

What am I doing wrong!

Thank you.
tre

Replies

  1. Low 10 Jul 2014 07:15

    Is Apache's mod_security enabled on the non-working site?

    Also, what's the URL that triggers the 404?

  2. dvrsnarytactic 10 Jul 2014 13:33

    The non working site is on a Grid Server, the working is on a DV. It appears as if mod_security is not installed on the Grid according to the knowledge base.

    The URL triggering the 404 is /search/results?keywords=music

  3. Low 10 Jul 2014 13:44

    Are you getting the 404 too when encoding the queries?

  4. dvrsnarytactic 10 Jul 2014 13:47

    I am indeed.

  5. Low 10 Jul 2014 14:07

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  6. dvrsnarytactic 10 Jul 2014 15:15

    Thank you. I'll get that too you as soon as I can.

  7. Low 14 Jul 2014 09:06

    Turns out this was a Structure implementation issue.

    Piper LeMoine 11 Sep 2017 11:18

    Hi, I'm having this same issue and we use Structure. What was the fix here?

    Low 12 Sep 2017 07:18

    Not sure, but I reckon it had to do with the search results URI being interpreted as a Structure URL, whereas it should not be -- it should be handled by EE's native template routing.