WordPress.org

Ready to get started?Download WordPress

Forums

5 line alternative .htaccess - search not working (3 posts)

  1. pcmt
    Member
    Posted 8 years ago #

    I am using boren's handy 5 line alternative .htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ /index.php/$1

    Everything is working fine on the site, with the exception of WordPress search from any page except the homepage. On other pages I am seeing:

    ht*p://www.site.com/index.php/category?s=search+terms

    with "No results found".

    I'm wondering if anyone else has used the 5 line method and found a way to solve this.

  2. Kafkaesqui

    Posted 8 years ago #

    Try changing the action attribute for the searchform form element to action="/index.php" .

  3. pcmt
    Member
    Posted 8 years ago #

    That seems to work very nicely. Thanks for the tip. Actually I have used action="/".

Topic Closed

This topic has been closed to new replies.

About this Topic