Activating the option WPML > Settings > Login and registration pages > Allow translating the login and registration pages redirects the login page to a url containing the lang code (ie /wp-login.php => /fr/wp-login.php), which returns an Openresty 404. This makes the admin panel inaccessible.
The 404 is returned by Nginx/Openresty, probably from an existing or a missing rule. We could define if this option should be
- accepted, and so find the proper rule;
- or hidden and locked so that it is not activated by mistake.
Workaround
The workaround used to fix the Belgium instance is a post-deploy script disabling this option
Tasks
- Disable that option, ideally if there is a hook, or just with css to prevent people from enabling it.
Resources