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.

Server uri_protocol query

March 30, 2011 8:29am

Subscribe [3]
  • #1 / Mar 30, 2011 8:29am

    Steven Grant

    894 posts

    Hi folks.
    Noticing something I’ve never experienced before.

    Working on a site on MAMP at the moment. Nothing out of the ordinary. Uses Structure module and relatively standard .htaccess file (below):

    AcceptPathInfo On
    
    Options -Indexes
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Looks for files and directories that do not exist
    # and provide the segments to the index.php file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^/index.php
    RewriteCond $1 !.(css|js|png|jpe?g|gif|ico)$ [NC]
    RewriteRule ^(.*)$ index.php/$1 [L]
    </IfModule>

    On MAMP, everything behaves as one would expect. However, when I move onto my test server, no matter what link is clicked, you always get the homepage.

    Now, with some Twitter help, dpdexter pointed me in the direction of altering config.php, specifically

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

    To get the site working in test, I had to change from AUTO to REQUEST_URI - that solved navigation issue but what it did in addition was break the like of member logout etc.

    Hopefully someone can help.

  • #2 / Mar 30, 2011 10:24am

    Steven Grant

    894 posts

    Same issue Erik Reagan had here http://forrst.com/posts/Dynamic_URI_Protocol_in_ExpressionEngine-4TD

    All good now.

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

ExpressionEngine News!

#eecms, #events, #releases