D
D
DooX2021-04-27 13:11:36
Apache HTTP Server
DooX, 2021-04-27 13:11:36

Multisite wordpress problem with authorization or hosting settings?

Good afternoon again!
Installed on hosting REG Wp.
Enabled multisite.

config

define( 'WP_DEBUG', false );
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'хххх');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

installed (registered)
htaccess


RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]


registered in isp alias *.my domain
in the admin panel everything works.
Websites are created on subdomains and opened.
But I noticed if you create a post, it appears everywhere, but this should not be.
Further, if you log in as the administrator of one of the site, it gives a ban on access to the admin panel.
understandable, because the site thinks that we want to go to the admin panel of the main site. even though I'm on a subdomain.
6087e31cc96bc543018351.png

Who knows, tell me, I feel that the truth is somewhere nearby! but I can't find it.
searched in the internet could not probably formulate the correct search query.

just for the sake of interest in the browser, I set any subb domain and it opened.
apparently logically from the hoster's side are all the rules?
So in WP it should intercept the url and, depending on the url, display the necessary data?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question