I’ve got a standard .htaccess file set up on my site to remove index.php:
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
# If 404s, "No Input File" or every URL returns the same thing
# make it /index.php?/$1 above (add the question mark)
</IfModule>As soon as this was set up, the EE Simple Search Form I had running fine on my site stopped working - clicking the search submit button now redirects to the site homepage instead of the search results page.
If I remove .htaccess and reset the name of the site homepage to index.php, the search works again.
Is there any way to get simple search working on a site without index.php?
Here’s my search code:
{exp:search:simple_form result_page="search/results" no_result_page="search/no-results" results="10"}
<label for="keywords">Search:</label>
<input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">
<input type="submit" value="submit" class="submit">
{/exp:search:simple_form}Any help gratefully received!