wordpress multisite>子目录> wp-admin无法打开

问题描述 投票:0回答:1

我有一个多站点系统在运行。有一个子文件夹,一切都很完美。前端位于qazxsw poi和qazxsw poi的后端

但现在我需要domain.com/folder,后端应该在domain.com/folder/wp-admin,但事实并非如此。我认为问题出在我的domain.com/folder/en/


    # 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]

有人知道这个问题以及如何解决它?

wordpress .htaccess multisite
1个回答
0
投票

尝试在.htaccess文件中添加这些行。

domain.com/folder/en/wp-admin
© www.soinside.com 2019 - 2024. All rights reserved.