• The search function on my site has suddenly stopped working. I don’t even know where to begin looking for the problem. It just redirects me to index.php. If I manually query with index.php?s=Thunderbird&submit=Search or something like that it works perfectly.
    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure you have your search bar in your index.php? Did you delete any lines?

    By default, WordPress uses PHP_SELF for the search function. The problem is that if you put the search form on another page, it tries to search that page.
    I might have changed around the search form a bit, but locate where said form is in your template.
    Replace the first line of the search form with this:
    <form id="searchform" method="get" action="<?php get_settings('siteurl') ?>">
    This will search only where your blog is located, in this case index.php.

    Thread Starter seraph

    (@seraph)

    Problem solved. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search not working all of a sudden’ is closed to new replies.