Troubleshooting

I Can’t Log Out From my WordPress Dashboard After Changing the Logout Path

If clicking the logout link does nothing, redirects to the homepage, or shows an error after changing the logout path in WP Ghost, the custom path isn’t resolving or the session nonce is mismatched.

Flush permalink settings

Go to Settings > Permalinks and click Save Changes without modifying anything. This regenerates WordPress’s rewrite rules, which often fixes logout path issues immediately.

Log out and log back in

If you changed multiple paths (admin, login, and logout) at the same time, your session cookies are tied to the old paths. Try logging out by visiting the default WordPress logout URL directly: yourdomain.com/wp-login.php?action=logout. If that works, log back in through your custom login path so WP Ghost creates fresh cookies on the new paths.

Check for typos in the custom path

Go to WP Ghost > Change Paths > Login Security and review the custom logout path for typos, spaces, or special characters. The path should be a simple alphanumeric slug.

Revert to the default logout path

If the issue persists, go to WP Ghost > Change Paths > Login Security, clear the Custom Logout Path field, and save. This restores the default WordPress logout behavior. If logout works with the default path, the issue is server rewrite rules not handling the custom path.

Check for plugin conflicts

Plugins that modify the logout process (custom login page plugins, session management plugins, security plugins with their own logout handling) can override WP Ghost’s custom logout URL. Temporarily deactivate login-related plugins and test the logout. If it works, the conflicting plugin is overriding the logout path.

If you’ve lost access to the admin dashboard, see the emergency disable guide.

John Darrel

Change the WordPress Database Prefix for Security

Replace the default wp_ database prefix with a random one to protect against SQL injection…

1 year

Customize WordPress Uploads Directory | WP Ghost

Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…

1 year

WP Ghost and WP Rocket Cache Setup Guide

Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Set Up WordPress 2FA with Mobile Authenticator Apps

Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…

1 year