WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Unable to log out on the network (11 posts)

  1. MrBlackDrag0nfly
    Member
    Posted 5 months ago #

    Hi,

    I have a network site, but for some reason I can't log out.
    When I logout I go to the link

    http://<site>.com/wp-login.php?action=logout&_wpnonce=ecf93ddc7d

    This gives a 404 page.

    Does anyone have a solution?

    Regards,

    Ruben

  2. Can't log out of ....? The main site? A sub-site? A mapped domain?

  3. MrBlackDrag0nfly
    Member
    Posted 5 months ago #

    I can't log out on any of my sites.
    all my sites are in subfolders, but they all go to the same link and all give the 404 error

  4. Delete all the cookies for your domain and try again.

    If it still happens, turn off all plugins and test.

  5. MrBlackDrag0nfly
    Member
    Posted 5 months ago #

    Tried both, does not work. Well kind of. I did go to the page not found page. But the admin bar wasn't there anymore too. When I tried to go to wp-admin I got redirected to the 404 page again but his time with this url: http://<site>/wp-login.php?redirect_to=http%3A%2F%2F<SITE>%2Fwp-admin%2F&reauth=1

    I hope you can help me

  6. What plugins are you using? Anything to mess with logins?

  7. MrBlackDrag0nfly
    Member
    Posted 5 months ago #

    Nothing I know that edits the login in any way.

    Also without plugins it still doesn't work! AND, i've found that commenting gives the same result. Another url of course, but the same page

  8. What's in your .htaccess?

  9. MrBlackDrag0nfly
    Member
    Posted 5 months ago #

    Here it is:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %\{REQUEST_FILENAME\} -f [OR]
    RewriteCond %\{REQUEST_FILENAME\} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\\.php)$ $2 [L]
    RewriteRule . index.php [L]
  10. If those double back-slashes are for real, I think we have an idea. Try this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
  11. MrBlackDrag0nfly
    Member
    Posted 5 months ago #

    thanks you so much! That worked!
    I don't know why that dubble back-slash was there, pretty weird.
    Anyway: Thank you!

Reply

You must log in to post.

About this Topic