WordPress.org

Support

Support » How-To and Troubleshooting » Search from post/page not working

Search from post/page not working

  • Hi all.
    I have such problem:
    Search is not working correctly.
    Search works, if it is done from the home page (or index).

    If I open particular result and see, that this is not what I was looking for, I’m writing other search phrase, and this gives 404 error.

    myblog.com/?s=phrase <- works
    myblog.com/index.php/?s=phrase <- works
    myblog.com/index.php/page_name/?s=phrase <-not working

    Any suggestions/ideas?
    Thanks!

Viewing 1 replies (of 1 total)
  • esmi

    @esmi

    Forum Moderator

    Check that your search form points to <?php bloginfo('url'); ?>. Eg:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">

Viewing 1 replies (of 1 total)
  • The topic ‘Search from post/page not working’ is closed to new replies.