Viewing 6 replies - 1 through 6 (of 6 total)
  • krembo99

    (@krembo99)

    I see you have the wordpress installation in a sub directory ..
    How did you include the search form in your template ?

    Thread Starter librarygrrrl

    (@librarygrrrl)

    The search form (or the code that replicates what’s in most searchform.php files) is included in the header.php file. This is what that code looks like:

    <form id="searchform2" method="get" action="<?php bloginfo('home'); ?>">
    
    <input type="text"  onfocus="doClear(this)" value="<?php _e('search'); ?>" name="s" id="s" size="18" /> <input type="submit" value="<?php _e('Go'); ?>" />
    
    </form>

    Could this be my issue?

    krembo99

    (@krembo99)

    NO/// this is not the issue, but I think I understand what the issue is …

    In your wordpress general setting, where it say
    Blog address (URL)
    do you have
    https://www.librarygrrrl.net/
    or
    https://www.librarygrrrl.net/index.php

    you should have the first one (with no index.php)

    in the WordPress address (URL) you should have
    https://www.librarygrrrl.net/wordpress/&#8217;
    (or at least this is where i saw your real install was)

    Thread Starter librarygrrrl

    (@librarygrrrl)

    Thanks krembo99. That’s a good hunch, but my settings are correct –

    blog address: https://www.librarygrrrl.net
    and
    wordpress address: https://www.librarygrrrl.net/wordpress

    Do you (krembo99) or anyone else have other suggestions or places to look? For some reason, I *want* to blame this on my permalinks. Does that hunch ring any bells?

    I continue to be moderately puzzled.

    Developer ICAN

    (@richardicanie)

    Hi – have you managed to fix this yet? – i’m having the exact same problem? https://www.newirelandlimousines.com/?s=touring

    I had this problem and below is what fixed mine.

    line 124 -> wp-includes/general-template.php

    change

    $form = ‘<form role=”search” method=”get” id=”searchform” action=”‘ . get_option(‘home’) . ‘/” >

    to

    $form = ‘<form role=”search” method=”get” id=”searchform” action=”/index.php” >

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search not working – redirects to index.php’ is closed to new replies.