{"id":12024309,"date":"2019-10-13T02:19:18","date_gmt":"2019-10-13T02:19:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/login-does-302-redirect-to-wp-login-php\/"},"modified":"2019-10-13T02:19:18","modified_gmt":"2019-10-13T02:19:18","slug":"login-does-302-redirect-to-wp-login-php","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/login-does-302-redirect-to-wp-login-php\/","title":{"rendered":"\/login does 302 redirect to \/wp-login.php"},"content":{"rendered":"<p>Hello folks,<\/p>\n<p>I tried searching this forum and on google but couldn&#8217;t find anything related to this redirect I&#8217;m getting in WP. I thought an explanation would be pretty easy to find but apparently not.<\/p>\n<p>On a site I&#8217;m managing I&#8217;m getting a 302 redirect from \/login to \/wp-login.php (ex: mysite.com\/login redirects to mysite.com\/wp-login.php). This isn&#8217;t a problem but I&#8217;m trying to figure out where this redirect is coming from. There is no redirect plugin installed so I know it isn&#8217;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&#8217;t find anything. I have seen this on other sites I have managed but always assumed it was in the htacess file.<\/p>\n<p>One thing I noticed when checking the response headers it gives:<br \/>\nlink: &lt;https:\/\/mysite.com\/wp-json\/&gt;; rel=&#8221;https:\/\/api.w.org\/&#8221;<\/p>\n<p>Is this baked into WordPress or is it set somewhere by WordPress? I asked because I have a local install setup that&#8217;s a clone of the website I&#8217;m managing but this redirect isn&#8217;t there.<\/p>\n<p>Thanks in advance for any help provided!<\/p>\n","protected":false},"template":"","class_list":["post-12024309","topic","type-topic","status-publish","hentry","topic-tag-302-redirect","topic-tag-login","topic-tag-wp-login-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12024309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12024309\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12024309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}