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

  1. pcmt
    Posted 9 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:


    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 9 years ago #

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

  3. pcmt
    Posted 9 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