We are developing a WordPress multisite (group of 5 subsites) and we are facing this problem. We developed the multisite as http://wpsite.com/sub1, http://wpsite.com/sub2,... etc. Now we want to access these sites as sub1.mainsite.com, sub2.mainsite.com and mainsite.com is already a working stand-alone website.
We have checked many articles and questions but could not find a suitable solution.
We have tried doing a permanent redirect from sub1.mainsite.com that points to http://wpsite.com/sub1, however, the URL changes in the address bar which is not we want.
What is the best way to solve this problem? Please help.