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.

Removing index.php on MediaTemple - .htaccess problems

November 29, 2012 1:02pm

Subscribe [2]
  • #1 / Nov 29, 2012 1:02pm

    ericwestbrook

    9 posts

    I’m using the include method to remove index.php:

    # Remove index.php
    # Uses the "include method"
    # <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
    RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(search|rss|work|ideas|events|about|contact|members|P[0-9]{2,8}) [NC]
    RewriteRule (.*) /index.php/$1 [L]

    If I leave it like this, the default template will render at the root URL, but every other link gives the “No Input File Specified” error. I’ve found slews of other users with a similar problem, and they all seem to resolve it by adding a question mark to the last line after “index.php”:

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

    This doesn’t solve the problem for me. It gives me different symptoms. Now every link just shows the default template.

    All the support threads I find with users concerning these new symptoms, they say to resolve it the exact same way. To add the question mark… but for me, that’s what causes these symptoms.

    I’m on MediaTemple dv 4.0, any one else have to tackle this issue? I feel like it must be an apache config problem. rewrite mod and such are turned on.

  • #2 / Nov 29, 2012 1:11pm

    ericwestbrook

    9 posts

    Fixed it. The config was setup with:

    $config['uri_protocol'] = 'ORIG_PATH_INFO';

    Just had to change to:

    $config['uri_protocol'] = 'AUTO';

    The old server must have required the specific setting. Hope this saves some one some time!

  • #3 / Nov 30, 2012 5:04pm

    mt_Drew

    4 posts

    Fixed it. The config was setup with:

    $config['uri_protocol'] = 'ORIG_PATH_INFO';

    Just had to change to:

    $config['uri_protocol'] = 'AUTO';

    The old server must have required the specific setting. Hope this saves some one some time!

    Hey Eric! I’m glad you were able to get that figured out. In the future, you can always try posting over at the (mt) Media Temple forums as well, there are plenty of people knowledgeable with our product over there. Additionally, if there is anything we can help you out with, you can get in touch with us 24/7 on phone, chat and Twitter.

    Drew J
    (mt) Media Temple
    @MediaTemple

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

ExpressionEngine News!

#eecms, #events, #releases