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):
Since I didn’t do anything fancy with this setup, I imagine many people have ran into this problem. I there a known fix? If so, I’d love to hear about it.
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.
The thread you linked to does mention the same issue that I encounter, which is interesting, but it seems to die silently without coming to a clear solution.
I saw the config, but the OP of that topic then went on to comment that it did not work after all, implying there is more to it. Anyway, I will add the config and report back. Thanks for your help!
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.