Support » Fixing WordPress » Search function redirects to home page

  • Resolved lowestofthekeys

    (@lowestofthekeys)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lowestofthekeys

    (@lowestofthekeys)

    Aw, so it seems to be resolved now.

    Just replaced “<?php bloginfo(‘siteurl’); ?>” with “<?php echo $_SERVER[‘PHP_SELF’]; ?>”

    L D

    (@domenicoleone)

    Hi,

    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?

    Cheers
    D

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search function redirects to home page’ is closed to new replies.