Hello,
The following steps was used to install:
composer create-project roots/bedrock
-
add define('WP_ALLOW_MULTISITE', true);
into application.php composer require roots/multisite-url-fixer
- after, added into application.php
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'dev.mysite.tld'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
- define Caddyfile:
Summary
(wpmu) {
rewrite {
if {path} not_match ^(\/wp)(\/wp-admin)(\/network)?
to {path} {path}/ /index.php?{query}
}
}
:80 {
redir 308 {
if {>X-Forwarded-Proto} is http
/ https://{host}{uri}
}
}
www.dev.mysite.tld {
redir https://dev.mysite.tld{uri}
}
dev.mysite.tld {
root /var/www/dev.mysite.tld/bedrock/web
import tls-cloudflare
timeouts 1h
import compact
import php72-fpm-sock
import directive-cors
import http-header
import wpmu
}
The problem: after choose subdomain and login/wp/wp-admin
, the network (top menu WP admin) gives /wp-admin/network
instead /wp/wp-admin/network
path. The left admin WP menu for the main website is ok.
What I read:
- https://github.com/roots/bedrock/issues/328
- https://github.com/roots/multisite-url-fixer
- https://github.com/roots/bedrock/issues/58
- https://github.com/roots/bedrock/issues/250
- https://github.com/roots/multisite-url-fixer/issues/3
What I doing wrong?