/wp-admin returns home page when WP Super Cache is enabled
-
When WP Super Cache is enabled, the /wp-admin path is returning or redirecting to the home page of the site. This only happens when I’m not logged in since I have caching disabled for logged in users.
I’ve cleared my browser cache and cookies multiple times, and have tested this in other browsers and even on other systems, so it does not appear to be a browser caching issue.
I have found that if I try these URLs I’m able to bypass the cached home page and get to the login, so the problem seems to be specific to the “/wp-admin” path:
/wp-login.php /wp-admin/index.php
I’ve also found if delete the supercache folder on the server entirely or I delete the following file, I’m able to get to the /wp-admin page again, which makes me think this specific cache file is being returned for requests for any subdirectory path, and not just the home page:
/wp-content/cache/supercache/[My Website]/index-https.html
This is my list of files being excluded from caching, but no variation of the wp-admin path appears to let me get to that page (I suspect once the home page gets cached it gets returned regardless of this setting):
wp-.*\.php index\.php wp-admin wp-admin/
Finally, I’ve also tried deleting the entire contents of my .htaccess file to ensure no setting in there is causing the issue, with no change.
Any suggestions to ensure /wp-admin remains accessible at the standard location with WP Super Cache enabled? I’ve never seen this on any other sites I’ve used WP Super Cache on.
- The topic ‘/wp-admin returns home page when WP Super Cache is enabled’ is closed to new replies.