htaccess and logout

October 06, 2017 8:58pm

Subscribe [2]
  • #1 / Oct 06, 2017 8:58pm

    MarcoDeLuca's avatar


    25 posts

    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]

    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.


  • #2 / Oct 25, 2017 7:56pm

    Derek Jones's avatar

    Derek Jones

    7394 posts

    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, using your domain, but keeping the preceding dot.

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

ExpressionEngine News!

#eecms, #events, #releases