0

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?

Richard Erickson
2,6638 gold badges32 silver badges45 bronze badges
asked Apr 6, 2016 at 15:24
1
  • Did you ever get this sorted out? I'm encountering a similar dilemma and not finding any documentation to support this. Commented Apr 17, 2020 at 19:47

2 Answers 2

0

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]
answered Apr 6, 2016 at 16:15
Sign up to request clarification or add additional context in comments.

1 Comment

This does not change anything in my case. If I enter: domain.com/site-one/wp-admin the backend of site-one opens - everything works perfectly. If I enter: domain.com/site-two/sub/wp-admin the backend of the main site ( same like domain.com/site-one/wp-admin ) opens. This is wrong. In the fronend I also have an error. domain.com/site-two/sub returns a 404.
0

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

answered Oct 3, 2019 at 19:00

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.