Hello all,
This is as much for future me as anything else – the next time I encounter this problem, I’ll invariably search the forums, and hopefully find my own past wisdom.
I ran into a problem this morning with LG .htaccess and EE’s standard logout URL: /?ACT=10. The issue was solved by adding the following condition to the top of the “Remove index.php” block of rules.
RewriteCond %{QUERY_STRING} !(ACT=[0-9]{1,3})
The entire “Remove index.php” block in the extension’s settings now looks like this:
# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{QUERY_STRING} !(ACT=[0-9]{1,3})
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|{ee:pages}|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]
I look forward to revisiting this post regularly in the coming months and years.
Stephen
I also noticed an issue when I was using EE’s standard logout path and LG .htaccess generator. In my case, I’m not using the ‘Pages’ module so by simply removing the pages call from the LG’s generator it resolved my issue.
ORIGINAL:
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|{ee:pages}|members|P[0-9]{2,8}) [NC]
CHANGED TO:
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|members|P[0-9]{2,8}) [NC]
Hello all, This is as much for future me as anything else – the next time I encounter this problem, I’ll invariably search the forums, and hopefully find my own past wisdom. I ran into a problem this morning with LG .htaccess and EE’s standard logout URL: /?ACT=10. The issue was solved by adding the following condition to the top of the “Remove index.php” block of rules.The entire “Remove index.php” block in the extension’s settings now looks like this:RewriteCond %{QUERY_STRING} !(ACT=[0-9]{1,3})
I look forward to revisiting this post regularly in the coming months and years. Stephen# Remove index.php # Uses the "include method" # http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method RewriteCond %{QUERY_STRING} !(ACT=[0-9]{1,3}) RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|{ee:pages}|members|P[0-9]{2,8}) [NC] RewriteRule ^(.*)$ /index.php?/$1 [L]
Thanks Stephen. I was using the Link List module and removing the index.php broke the links. This fixed it.
Thanks for the fix Stephen. I’m working on my first EE site using the member module and this bug has been rather annoying to say the least.
Leevi, any word on an update to LG .htaccess Generator? Perhaps you could provide a relatively extensive .htaccess file commenting out all but the most necessary rules and comments to help users, such as myself, to learn more about writing .htaccess files through example. More experienced users who want a quick and easy to manage solution will likely rip out this stuff when they install the plug-in but don’t under estimate its value.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.