Title: Persistent 404 redirection after WordPress admin session expiry
Last modified: December 20, 2024

---

# Persistent 404 redirection after WordPress admin session expiry

 *  Resolved [wabetainfo](https://wordpress.org/support/users/wabetainfo/)
 * (@wabetainfo)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/persistent-404-redirection-after-wordpress-admin-session-expiry/)
 * Hi,
   I would like to report a bug that occurs when the WordPress admin session
   expires.
 * Let’s assume you are in the WordPress admin panel, on any page (for example, 
   on the post creation screen or the installed plugins page). If you manually refresh
   the page and your WordPress admin session just expired, you will be redirected
   to the 404 page. At this point, you can log back into the admin panel using your
   credentials. However, if you return to the page you refreshed earlier, you will
   be redirected to the 404 page again, even though you are still logged in.
 * To temporarily resolve this issue, I need to add a random parameter (for example,`&
   test=1`) to the URL to view the page again. After some time (possibly two hours
   or a little more), I can access that page without being redirected to the 404
   page and without needing to add the additional random parameter.
 * It’s important to note that I use the latest version available (1.9.17.1). In
   addition, I tried to resolve the issue without adding any random parameter. For
   example, I cleared the cache and logged out again, but this did not solve the
   problem.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/persistent-404-redirection-after-wordpress-admin-session-expiry/#post-18213948)
 * Hello,
 * Thanks for using WPS Hide Login.
 * Did you exclude wp-admin and wp-login pages from cache ?
 *  Thread Starter [wabetainfo](https://wordpress.org/support/users/wabetainfo/)
 * (@wabetainfo)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/persistent-404-redirection-after-wordpress-admin-session-expiry/#post-18214281)
 * Hi [@seinomedia](https://wordpress.org/support/users/seinomedia/) 
   Thanks for
   your answer.
 * Sure! I previously ran different tests to ensure those pages were excluded from
   the cache. By default, they’re already excluded for logged-in users, but I remember
   double-checking and manually excluding them as well. Despite that, the issue 
   persisted.
 * I also disabled the plugins responsible for both page caching and object caching,
   cleared the cache on Cloudflare (even though it’s unnecessary since Cloudflare
   doesn’t cache admin pages by default for security reasons, but I gave it a try),
   and cleared the Varnish cache. Additionally, I tested accessing the admin pages
   using the browser’s incognito mode.
 * I understand it’s easy to assume that this issue is caused by the cache as adding
   a parameter fixes the issue (since changing parameters can generate a different
   version of the page), but I still can’t figure out the cause…
 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/persistent-404-redirection-after-wordpress-admin-session-expiry/#post-18214693)
 * Hello,
 * It’s “easy” because it’s logical. A query string ([https://mysite.com/?querystring](https://mysite.com/?querystring),
   for example) disables all caches and you say the issue disappears with this kind
   of URL.
 * There are many levels of cache (browser, WordPress, Cloudflare, server…). Doing
   tests isn’t a proof. You cache plugin should have this kind of settings. You 
   should set it in Cloudflare too.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Persistent 404 redirection after WordPress admin session expiry’ is closed
to new replies.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/persistent-404-redirection-after-wordpress-admin-session-expiry/#post-18214693)
 * Status: resolved