Skip to content

How to configure Multisite using subdirectories in Wordpress on Warden #680

Discussion options

You must be logged in to vote

First create .warden/warden-env.yml file

Add below configuration for altering Nginx configuration

version: "3.5"
services:
  nginx:
    volumes:
      - ./.warden/nginx/custom.conf:/etc/nginx/default.d/custom.conf

now create .warden/nginx/custom.conf

Add below configuration

if (!-e $request_filename) {
  rewrite /wp-admin$ $scheme://$host$uri/ permanent;
  rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
  rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}
      

Now Follow the steps for setting up multisite configuration in WordPress
like
Altering wp-config.php
and so on ..

Cheers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KarthikMadathil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant