Hello,
I have a Simple Search Form on my site. This works as expected when developing locally.
However, after uploading the site to the live server the form no longer works. Instead of loading the search result / no results templates it’s redirecting to the site’s index page.
Pretty sure it’s a .htaccess problem, as when I remove the .htaccess file and keep the index.php it works again.
My .htaccess file currently looks like this.
<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>Had to add the ‘?’ to stop the “No input file specified” message.
Any help would be greatly appreciated!