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 works local not live

August 16, 2012 11:33pm

Subscribe [1]
  • #1 / Aug 16, 2012 11:33pm

    simoneramo

    3 posts

    Hi Guys

    I’ve removed index.php on my local dev and all is fine, but now that i’ve gone live my template files wont show unless i put index.php in the url, for example..

    mysite.com/gallery will only refer to site root mysite.com

    but if i put in

    mysite.com/index.php/gallery it works.

    Works fine local doesn’t work live.

    Any suggestions?

    cheers

  • #2 / Aug 17, 2012 1:24am

    simoneramo

    3 posts

    All good i found what was the issue.

    Had the uri protocol set to ‘PATH_INFO’ set it to ‘AUTO” fixed all the links.

    /*
    |—————————————————————————————————————
    | URI PROTOCOL
    |—————————————————————————————————————
    |
    | This item determines which server global should be used to retrieve the
    | URI string.  The default setting of “AUTO” works for most servers.
    | If your links do not seem to work, try one of the other delicious flavors:
    |
    | ‘AUTO’  Default - auto detects
    | ‘PATH_INFO’  Uses the PATH_INFO
    | ‘QUERY_STRING’ Uses the QUERY_STRING
    | ‘REQUEST_URI’  Uses the REQUEST_URI
    | ‘ORIG_PATH_INFO’ Uses the ORIG_PATH_INFO
    |
    */
    $config[‘uri_protocol’] = ‘AUTO’;


    Sweetish!

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

ExpressionEngine News!

#eecms, #events, #releases