ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

index.php removal keeping search from working

January 04, 2011 10:29am

Subscribe [4]
  • #1 / Jan 04, 2011 10:29am

    soloflight

    21 posts

    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 Rewrite

    Since 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.

  • #2 / Jan 06, 2011 3:19pm

    soloflight

    21 posts

    Does anyone have any suggestions at all? Since Ellis Labs offers no support on index.php issues, this is the only place I have to go to. I really would appreciate any help.

  • #3 / Jan 06, 2011 6:11pm

    Rob Sanchez

    335 posts

    Your search works for me. Safari on Mac.

  • #4 / Jan 06, 2011 6:17pm

    soloflight

    21 posts

    Holy crap, you’re right… not sure what I did, thank god.

  • #5 / Jan 06, 2011 6:55pm

    mhughes73

    60 posts

    Works for me as well.

  • #6 / Oct 11, 2011 4:20pm

    timd

    14 posts

    I posted a solution for certain cases in this thread:  http://ellislab.com/forums/viewthread/176392/P18/#943583

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases