简体   繁体   中英

Wordpress Multisite Domain Mapping Only Redirects

I am successfully able to map 2 DNS entries to my wordpress site. I have made a network and then installed the mu domain mapping plugin. The multisite is in the form of a directory/sub-folder. So when I open the non-primary url, it maps correctly to the sub-folder site and the corresponding page gets displayed.

DNS -> WP Site
original-name -> original-name
second-name -> original-name/sub-folder

Now the problem is the Browser shows the

original-name/sub-folder

in the URL section instead of the second-name (DN through which i accessed the site).

In other words, this is a mere redirection to the mapped sub-folder. Is there any way to have all my links on my page and the Browser URL display the other domain name and not the folder structure?

I got this working. Under the site (second-name), go to Tools -> Domain Mapping -> Add new domain, add the domain here and make it primary. Making it primary is the key. That is what wp "redirects" to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM