• Resolved webdiddy

    (@webdiddy)


    When I use the serach function at my website I get the 404 page not found error.

    I know the reason I get this is beacsue the serach is searching i dubble folders. Instaed of seraching in wordpress/index.php?s=gero
    it’s seraching in wordpress/wordpress/index.php?s=gero
    how do I fix this? I’m using the Folio Blogger theme.

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter webdiddy

    (@webdiddy)

    none? it seams lika simple problem.

    Thread Starter webdiddy

    (@webdiddy)

    I guess I’m stuck with a faulty search button :’-(
    I forgot to mention the search work on the default worpress theme.

    Can you find the location of the form action? It should look something like this:

    <form method="get" class="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">

    If so go ahead and post what the action=” ” is inside of that, because it sounds like that’s where your problem is coming from

    Thread Starter webdiddy

    (@webdiddy)

    this is what “searchform.php” looks like in the theme folder I’m using.

    <form method="get" id="searchform" action="<?php echo get_bloginfo('url'), $_SERVER['PHP_SELF']; ?>">
    <p>
    <input type="text" value="Search keywords" name="s" id="searchbox" onfocus="this.value=''"/>
    <input type="submit" class="submitbutton" value="Find it" />
    </p>
    </form>

    Try:

    <form method="get" id="searchform" action="<?php echo get_bloginfo('url'); ?>">
    <p>
    <input type="text" value="Search keywords" name="s" id="searchbox" onfocus="this.value=''"/>
    <input type="submit" class="submitbutton" value="Find it" />
    </p>
    </form>
    Thread Starter webdiddy

    (@webdiddy)

    sucess!!!

    Thanks for the info jessn!!!
    I removed “get_bloginfo(‘url’),” and now it works!

    My search wasn’t working after making a tweet archive via this method:

    http://stopdesign.com/archive/2010/03/02/browsable-searchable-archive-of-tweets.html

    I replaced the action=”/tweets/” with <?php echo get_bloginfo(‘url”); ?> and everything seems to work splendidly now. I suspect the problem dealt with where I placed the WP install on my server. Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Search not working.’ is closed to new replies.