A few weeks ago, I posted a problem with the simple search function no longer working, and we narrowed the problem down to being the htaccess removal of index.php from the URL to be the culprit. And since I still haven’t found a solution, and it’s basically a different question now, I thought I would try again to see if anyone else has a suggestion to figure this out. And since Ellis Labs provides zero tech support for removing index.php from the URL, I have to turn to everyone else.
The search, when used, redirects back to the home page. When index.php isn’t removed, it works fine. Here’s a link to the temporary test URL:
http://www.amsafety.com.s110717.gridserver.com/
And here’s the code for my index.php removal in the htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^amsafety.com.s110717.gridserver.com$ [NC]
RewriteRule ^(.*)$ <a href="http://www.amsafety.com.s110717.gridserver.com/$1">http://www.amsafety.com.s110717.gridserver.com/$1</a> [R=301,L]
# BEGIN ExpressionEngine Rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteRule ^(.*)$ /index.php?$1 [L]
</IfModule>
# END ExpressionEngine RewriteSince the site is launching this afternoon, it would be really nice to find a solution. Otherwise I’ll have to disable the search until I can find a solution.