I have a subdomain multisite setup using Bedrock, but I’m running into problems managing pages.
I installed one of the forks of the multisite-url-fixer, and removed the /wp bit from WP_HOME and WP_SITEURL in wp_options (and in the .env, though that shouldn’t matter). This fixed the front-end, so that’s good. However, when I want to edit a page, I get an endless stream of 403 errors on various API calls it tries to do.
What’s weird is that I noticed the URLs for managing pages still contain the /wp part (no idea where it gets it from), and when I manually remove that from the URL (from /wp/wp-admin/post.php?post=23&action=edit to /wp-admin/post.php?post=23&action=edit for example), updating pages works just fine. So I’m guessing I’m missing some important redirect rule?
My .htaccess looks like this (taken from documentation on the subject):
The problem is not that wp-admin has /wp/ in front of it. The problem is the 403s that render the admin useless. If I manually remove said /wp/ part from the URL, the admin still works, and without the 403s.
I removed the multisite-url-fixer from my setup and now everything seems to be working fine. I don’t understand why it wasn’t working before and how I ended up in this rabbit hole, but at last I continue my work. Thanks for the help and patience.