redirection icon indicating copy to clipboard operation
redirection copied to clipboard

Redirecting all visitors not logged in and excluding wp-admin

Open Oclair opened this issue 5 months ago • 0 comments

Summary

I am trying to redirect all visitors who are not logged in to another domain where the old website has been moved to.
This enables me to work on the new website on the current url and not need to change the hardcoded url in the database.

The only problem is wp-admin is also included in the rule ^/* so if the logged in status requires to login again the admins are locked out.

Is there a way to whitelist wp-admin or exclude it from the rules?

Thanks in advance! Jason

Oclair avatar Mar 04 '24 18:03 Oclair