Wordpress multisite configuration
Benoit Linard
Hi everyone,
I’m trying to setup a wordpress multiste (subfolder type) on platformsh.
The main dashboard (and the network dashboard) work very well, but dashboards for the subsites trigger an infinite 302 loop (on https://xxxx/mysubsite/wp-admin/).
My wp-config seems ok, but I can’t customize the nginx configuration (as shown in several tutorials) with platformsh.
Do you have an idea ?
Thanks a lot in advance
0
Comments
I can definitely help out here. Changing/adding rewrite rules is handled inside of the
web:locations:<location>:rulessection of your .platform.app.yaml configuration file.Link to the docs about rewrites.
For a WordPress directory-based multisite, we’ll need to replicate the WordPress .htaccess rules into rules inside of our configuration:
Or you can see it here as part of a full .platform.app.yaml file (the gist is old so ignore the php 7.4
)
Given you can see the network dashboard, I’ll assume you’ve already added the necessary cookie values to your routes.yaml file?
Please sign in to leave a comment.