Password Protected post redirects to wp-login
-
Hi, I have a multisite network with the main blog and one additional blog.
The main site is at
hostname.domain.tld
, and the site in question is athostname.domain.tld/sitename
.I’m using the WP-MU-Domain-Mapping plugin to associate
sitename.domain.tld
withhostname.domain.td./sitename
. (I have an CNAME record that pointssitename.domain.tld
tohostname.domain.tld
.) Everything mostly works, except I have a couple pages that need to be password protected (and I don’t want to require users to have their own accounts.When I go to a password protected page,
sitename.domain.tld/pagename
, I get the page I expect. I have a password box and button all within my theme. However when I submit the password I am directed to thewp-login.php
pageHere’s what my Apache log shows is going on.
"POST /wp-pass.php HTTP/1.1" 302 - "GET /wp-admin/ HTTP/1.1" 302 - "GET /wp-login.php?redirect_to=http%3A%2F%2Fsitename.domain.tld%2Fwp-admin%2F&reauth=1 HTTP/1.1" 200 2286 "GET /sitename/wp-login.php HTTP/1.1" 200 2246
If I go back in my browser and reload the page, then I can view the contents of the page. Or in other words, what I’d expect to happen when I logged in.
I’ve tried this on multiple browsers, and have deleted my cookies before trying this.
Any help would be appreciated.
- The topic ‘Password Protected post redirects to wp-login’ is closed to new replies.