0
私はマルチサイトシステムを稼働させています。 1つのサブフォルダですべてが完璧に動作します。 Fronendはdomain.com/folder/wp-admin
wordpress multisite>サブディレクトリ> wp-adminが開かない
でdomain.com/folder
とバックエンドである。しかし、今、私はdomain.com/folder/en/
を必要とし、バックエンドはdomain.com/folder/en/wp-admin
にする必要がありますが、それはしません。問題は私のhtaccess
のどこかにあると思います。
# BEGIN WordPress RewriteEngine On RewriteBase/ # Rule 1 RewriteRule ^index\.php$ - [L] # Rule 2: uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)*files/(.+) wp-includes/ms-files.php?file=$2 [L] # Rule 3: add a trailing slash to "/wp-admin" # Note: This rule issues and redirect that will subsequently match Rule 5 RewriteRule ^(([_0-9a-zA-Z-]+/)*)wp-admin$ $1wp-admin/ [R=301,L] # Rule 4: do nothing if URL is a file or directory RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule^- [L] # Rule 5: strip preceeding path from wp-(content|admin|includes) paths RewriteRule ^([_0-9a-zA-Z-]+/)*(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)*(.*\.php)$ $2 [L] RewriteRule . index.php [L]
誰かがこの問題をどのように解決しているのですか?
これは私の場合は変更されません。 https://domain.com/site-one/wp-admin/を入力すると、サイトのバックエンドが開きます。すべて正常に動作します。 https://domain.com/site-two/sub/wp-admin/メインサイトのバックエンド(https://domain.com/site-one/wp-admin/と同じ)を入力すると、開く。これは間違っています。 私はまた間違いがあります。 https://domain.com/site-two/sub/は404を返します。 –