Why wordpress multisite root site showing blog prefix by force?

I have installed a directory base multisite in the localhost and create two subsites. The URL’s are looking like as follows:

Root Site: http://localhost/mcqacademy/
Subsite for English: http://localhost/mcqacademy/en/
Subsite for Bangla: http://localhost/mcqacademy/bn/

Now I am thinking to update the permalinks. I opened the permalinks page in the root site (http://localhost/mcqacademy/wp-admin/options-permalink.php)

Problem is I don’t understand why the URL structure is showing like http://localhost/mcqacademy/blog/ instead of http://localhost/mcqacademy/

Note:
When I am in the root site theme and use the following code:

$user_id = get_current_user_id();
$url = get_author_posts_url( $user_id );

Return me the http://localhost/mcqacademy/blog/author/admin/ url.

I think the URL should be http://localhost/mcqacademy/author/admin/.

On the other hand, When I am in the en subsite theme and use the following code:

$user_id = get_current_user_id();
$url = get_author_posts_url( $user_id );

Return me the http://localhost/mcqacademy/en/author/master/ url.
Which is the expected output!!

Thanks in Advance! Let me know your suggestions …

Read more here:: Why wordpress multisite root site showing blog prefix by force?

Leave a Reply

Your email address will not be published. Required fields are marked *