I need to redirect all traffic for a suspended site and what I have tried so far is installing the redirect plugin and adding a redirect (tools->redirection->add new
source: ^/(?!.*login.*|under_construction)(.*)
target: /under_construction
But while it redirects all traffic to under_construction
correctly, and does not redirect under_construction
(recursively), the login exclusion isn't working so it also redirects the login to under_construction
, so I can't log in or out.
https://example.com/wordpress/wp-login.php
to https://example.com/under_construction
Fortunately, it wouldn't let me log out, and did not affect the other admin pages, so I was able to disable it. :-)