{"id":12265309,"date":"2019-12-23T16:12:53","date_gmt":"2019-12-23T16:12:53","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/doesnt-exclude-admin\/"},"modified":"2019-12-23T16:12:53","modified_gmt":"2019-12-23T16:12:53","slug":"doesnt-exclude-admin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/doesnt-exclude-admin\/","title":{"rendered":"Doesn&#8217;t exclude admin"},"content":{"rendered":"<p>So I use the regexp <code>^(.*)$<\/code> for redirecting all frontend URLs to another URL,<br \/>\nbut this also redirects <code>\/admin<\/code> and <code>\/wp\/wp-admin\/<\/code> as well, locking one out of the backend. I had to disable the plugin using <code>WP CLI<\/code> via shell to regain access.<br \/>\nThis is a roots.io Bedrock site, where the WordPress files reside in \/wp\/,<br \/>\nit could be that the URLs to be excluded are actually hardcoded into the plugin<br \/>\ninstead of being determined using WordPress functions.<\/p>\n","protected":false},"template":"","class_list":["post-12265309","topic","type-topic","status-publish","hentry","topic-tag-admin","topic-tag-all","topic-tag-exclude","topic-tag-hardcoded","topic-tag-path","topic-tag-regexp","topic-tag-roots","topic-tag-url","topic-tag-urls","topic-tag-wp-admin"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12265309","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\/12265309\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12265309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}