/login does 302 redirect to /wp-login.php
-
Hello folks,
I tried searching this forum and on google but couldn’t find anything related to this redirect I’m getting in WP. I thought an explanation would be pretty easy to find but apparently not.
On a site I’m managing I’m getting a 302 redirect from /login to /wp-login.php (ex: mysite.com/login redirects to mysite.com/wp-login.php). This isn’t a problem but I’m trying to figure out where this redirect is coming from. There is no redirect plugin installed so I know it isn’t plugin related and I have checked all the usual suspects such as htaccess, wp-config, the wp database as well as almost every other .php file that might contain settings but I can’t find anything. I have seen this on other sites I have managed but always assumed it was in the htacess file.
One thing I noticed when checking the response headers it gives:
link: <https://mysite.com/wp-json/>; rel=”https://api.w.org/”Is this baked into WordPress or is it set somewhere by WordPress? I asked because I have a local install setup that’s a clone of the website I’m managing but this redirect isn’t there.
Thanks in advance for any help provided!
- The topic ‘/login does 302 redirect to /wp-login.php’ is closed to new replies.