I pulled a site from WP Engine that had wps-hide-login activated to make the login url something other than /wp-login. Trying to use the wp-admin button in Local takes me to a 404 page unless I remove the plugin from the plugins directory.
Troubleshooting Questions
Does this happen for all sites in Local, or just one in particular?
Just sites with wps-hide-login installed and admin set to a different url
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes, default new site works fine.
System Details
v6.4.1
Windows 10 Professional_
Is there any way that an admin url setting can be defined in the preferences?
The plugin doesn’t need to be enabled for local development, but having pulled the site from WP Engine Connect, I’m concerned that I’ll forget to reinstall the plugin once I have made my changes when it comes to pushing them back up to WP Engine!
I tried the One-click admin and it gave me a weird scenario where I was logged in at the top of the page in the WP admin toolbar, but every admin page still gave the 404 error.
I think the only real way around this would be to allow a custom url setting for the admin in the Local preferences? I appreciate that isn’t going to happen any time soon.
That could be an interesting feature enhancement in the future, for sure. I don’t know that the use case is broad enough, but feel free to write up a feature request for it here in the community.
For now, will disabling the plugin work for your purposes and allow you to continue forward in Local for development?
Yes, disabling the plugin by moving the wps-hide-login folder outside of the site root has worked to allow me to continue forward with my Local development. I am unsure whether replacing it before pushing my changes back up to WP Engine will re-activate the plugin with the original settings, but I will run a test on staging and find out.