[resolved] Search function redirects to home page (3 posts)

  1. lowestofthekeys
    Posted 3 years ago #

    Hello all,

    I created this page - http://pieforensic.com/resources/ - in wordpress with a search function. The problem lies in whenever I try to search, it redirects me to the home page, but the url displays this when searching for "hail" - http://pieforensic.com/?s=hail. I know that url is the right url, but the search.php page is not being used.

    It has worked before, but I have a feeling that the search function is not working properly because I moved the index.php and htaccess files to the main directory (the wordpress core files are located under a subfolder entitled - "articles") per http://codex.wordpress.org/Moving_WordPress.

    I have also tried deactivating all plugins with no luck.

  2. lowestofthekeys
    Posted 3 years ago #

    Aw, so it seems to be resolved now.

    Just replaced "<?php bloginfo('siteurl'); ?>" with "<?php echo $_SERVER['PHP_SELF']; ?>"

  3. L D
    Posted 2 years ago #


    I've installed WP Multisite, when I perform a search on each site every site redirect to relative homepage without any results... Which file do you have modified?


Topic Closed

This topic has been closed to new replies.

About this Topic