I have a multisite system running. With one sub-folder everything works perfectly. Fronend is at domain.com/folder and backend at domain.com/folder/wp-admin
But now I need domain.com/folder/en/ and the Backend should be at domain.com/folder/en/wp-admin but it does not. I think the problem is somewhere in my 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$ 1ドルwp-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]
Does someone know this problem and how to solve it?
-
Did you ever get this sorted out? I'm encountering a similar dilemma and not finding any documentation to support this.Mike– Mike2020年04月17日 19:47:03 +00:00Commented Apr 17, 2020 at 19:47
2 Answers 2
Try adding these lines on your .htaccess file.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-name.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/1ドル [L]
1 Comment
Maybe i'm wrong, but actually :
• your url is http(s)://mycustomurl/
• did u try to change to http(s)://mycustomurl/en/ in Network site page configuration ?
Regards