search results going to 404 page
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
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?
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
Low 10 Jul 2014 13:44
Are you getting the 404 too when encoding the queries?
dvrsnarytactic 10 Jul 2014 13:47
I am indeed.
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.
dvrsnarytactic 10 Jul 2014 15:15
Thank you. I'll get that too you as soon as I can.
Low 14 Jul 2014 09:06
Turns out this was a Structure implementation issue.