Search form returning all pages My search form is returning all of the sites pages, regardless of the search term used.

Even if I search for a load of random letters (dfbdsufbsf) all pages are returned.

This is my search form code.  I've tried changing the button to and  but no joy

      &lt;form class='form form--search' role='search' action="{{ url('search/results') }}"&gt;
        &lt;fieldset&gt;
          &lt;div class='input'&gt;
            &lt;label class='hidden' for='q'&gt;Search&lt;/label&gt;
            &lt;input class='form__input form__input--search' placeholder="Search" name='q' id="q" tabindex='1' type='search'&gt;
            &lt;button class='form--search__button' type="submit"&gt;&lt;/button&gt;
          &lt;/div&gt;
        &lt;/fieldset&gt;
      &lt;/form&gt;


And here is my search results page (search/results.html) (markup removed)

{#
 # Search template
 # ---------------
#}

{% extends "_layout" %}
{% block content %}
  {% set query = craft.request.getParam('q') %}
  {% set entries = craft.entries.search(query).order('score') %}

    &lt;h1 class='hero__title hero__title--news'&gt;Search Results&lt;/h1&gt;
    {% if entries|length %}
        &lt;p&gt;{{ entries|length }} results:&lt;/p&gt;
    {% else %}
        &lt;p&gt;Your search for “{{ query }}” didn’t return any results.&lt;/p&gt;
    {% endif %}


    {% if entries|length %}
        {% for entry in entries %}
            &lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;
        {% endfor %}
    {% endif %}

{% endblock %}


Any ideas why this is happening.  I'm using the latest version of Craft.  This is happening locally and on production.
Sorted.

It was a .htaccess issue

One of my redirects had a typo in it

RewriteRule ^old-page$ /new-page [R=301,L#]


should be 

RewriteRule ^old-page$ /new-page [R=301,L]