Bedrock Multisite and Docker

Hello bedrocks experts,

In addition to various WordPress single sites, we also have a few multisites. Specifically, it is about an English / German WordPress multisite. I need help here. I get into the backend of the German WordPress Multisite, into the network-backend from the Multisite but not into the backend from the English WordPress Multisite.

This is a subfolder bedrock installation on an Apache server on a Docker.

folder hierarchy:

docker root folder

|--apache-custom-config

|--apache-custom-files

|--config

|--|--environments

|--|--|---development.php

|--|--|---production.php

|--|--|---staging.php

|--|--application.php

|--vendor

|--web

|--|--app

|--|--|--languages

|--|--|--mu-plugins

|--|--|--|--multisite-url-fixer

|--|--|--plugins

|--|--|--themes

|--|--|--uploads

|--|--wp

|--|--|--wp-admin

|--|--|--wp-content

|--|--|--wp-include

|--|--|--[more files]

|--|--.htaccess

|--|--index.php

|--|--wp-config.php

|--.env

|--composer.json

|--composer.lock

|--docker-compose.yml

|--Dockerfile

I have full access to the database. I added a “wp” to the “siteurl” values of the tables

Databases Table:

prefix_sitemeta => siteurl => example/wp/

prefix_options => siteurl => example/wp/

prefix_2_options => siteurl => example/wp/en/

I also added the rewrite from the WordPress network settings to the htaccess.

RewriteEngine On

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteBase /

# add a trailing slash to /wp-admin

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^ - [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) wp/$2 [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L]

RewriteRule . index.php [L]

in my „index.php“ there are the following lines

<?php

define('WP_USE_THEMES', true);

require __DIR__ . '/wp/wp-blog-header.php';

require_once __DIR__ . '/app/mu-plugins/multisite-url-fixer/multisite-url-fixer.php';

Unfortunately, I can’t get any further with access to the English Beckend. With the URL “domain/wp/en/wp-admin” I always get an 404 errors.

I ask for help.

With best regards

Michael Vlatten

This topic was automatically closed after 42 days. New replies are no longer allowed.