Search from post/page not working (2 posts)

  1. Ansis
    Posted 7 years ago #

    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?

  2. esmi
    Forum Moderator
    Posted 7 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic