We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

htaccess and logout

Development and Programming

MarcoDeLuca's avatar
MarcoDeLuca
25 posts
7 years ago
MarcoDeLuca's avatar MarcoDeLuca

Hi Everyone,

— EE3.4.1 —

This is my htaccess:

<IfModule mod_rewrite.c>
        RewriteEngine On

        # Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

        # Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

When I try to log out from CP it work only the first time, next not work anymore.

did anyone have the same problem or can he give me the solution?

Thanks in advance.

Regards

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Hey Marco, .htaccess should not affect your ability to log out. However if you have a URL mismatch between the page you are on, and the configured CP URL (www / no-www for instance) and improper cookie settings, your logout link may be logging you out of one subdomain and not the other. Double check that you are only accessing the CP from a single domain, and set your cookies to be domain-wide by changing the cookie domain to .example.com, using your domain, but keeping the preceding dot.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.