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 and search working fine on local MAMP but not live

November 03, 2011 9:32am

Subscribe [3]
  • #1 / Nov 03, 2011 9:32am

    MadhouseHQ

    10 posts

    Hello,
    As the title suggests we have an issue with index.php refusing to be omitted form the live URLs. We’re using the standard EE HTaccess rewrite code. Another possibly related issue is that our search isn’t working on the live site either!

    I’ve pulled a copy of the live site down along with the database, set it up locally again and both the index.php issue AND the search just immediately began working as expected.

    I’ve tried the options outlined in the following thread http://ellislab.com/forums/viewthread/194165/#915531 but it didn’t work for me.

    Assistance with this would be greatly appreciated.

    Many thanks

    Martin

  • #2 / Nov 03, 2011 9:42pm

    Sue Crocker

    26054 posts

    Hi, Martin.

    Do you possibly need this part of the code?

    # If 404s, "No Input File" or every URL returns the same thing
            # make it /index.php?/$1 above (add the question mark)

    You didn’t mention who you were hosted with. Can we have you try the Server Wizard
    Anything not supported?

  • #3 / Nov 04, 2011 5:27am

    MadhouseHQ

    10 posts

    Hi Sue,
    We’re hosted with Layershift in the UK http://uk.layershift.com on a Linux server.

    I’ve run the server wizard and it passes on all counts.

    Not sure what you mean by the code? I tried un-commenting but it just errored.

    Our URL is http://www.convatecstomacare.co.uk.  Manually removing the index.php from the URL in the browser still loads the page fine?

    Thanks

    Martin

  • #4 / Nov 04, 2011 9:23pm

    Dan Decker

    7338 posts

    Hi Martin,

    Can you give the following a try on your live server and let us know how it goes:

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

    Please note this line:

    RewriteRule ^(.*)$ /index.php?/$1 [L]

    That is the line where the “?” should be added (note that I have added it in the example). After making these changes, let us know if you still have these issues.

    Thanks!

  • #5 / Nov 07, 2011 4:35am

    MadhouseHQ

    10 posts

    Hi Dan,
    Your supplied code didn’t solve the issue.

    I’ll PM access to the admin if that helps?
    *** DAN, YOUR MESSAGE BOX IS FULL ***

    Many thanks

    Martin

  • #6 / Nov 07, 2011 6:47am

    MadhouseHQ

    10 posts

    **** FIXED *****

    We’re using HTML5 Boilerplate as our jump-off.  It seems we had a conflict in the .htaccess with the default EE index.php removal script.

    Thanks for your help!

    Martin

  • #7 / Nov 08, 2011 10:31pm

    Dan Decker

    7338 posts

    Hi Martin!

    Glad to hear you are all set!

    Just FYI, most EllisLab staff have PMs disabled to protect Community members from insecurely supplying sensitive information.

    If you ever need assistance in the future, let us know in a new thread. We’ll be here!

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases