Domain mapping with Multisite links are wrong

admin2025-06-06  9

I have multisite setup and I'm using the WordPress MU Domain Mapping plugin so I can control other domains with multisite. I have it installed on a subdomain to act as my command location. I plan to connect main sites and staging sites:

  • maindev.site1 (mutlisite install)
  • dev.site1
  • site1
  • dev.site2
  • site2
  • etc

because I'm installed in a subdomain and the way the hosting works my multisite is subdirectory based so dev.site1 is actually maindev.site1/dev.

The issue instead of links being dev.site1/hello-world they are maindev.site1/dev/hello-world. Both work but the links are correct. I've tried reseting permalinks but it didn't work.

I have multisite setup and I'm using the WordPress MU Domain Mapping plugin so I can control other domains with multisite. I have it installed on a subdomain to act as my command location. I plan to connect main sites and staging sites:

  • maindev.site1 (mutlisite install)
  • dev.site1
  • site1
  • dev.site2
  • site2
  • etc

because I'm installed in a subdomain and the way the hosting works my multisite is subdirectory based so dev.site1 is actually maindev.site1/dev.

The issue instead of links being dev.site1/hello-world they are maindev.site1/dev/hello-world. Both work but the links are correct. I've tried reseting permalinks but it didn't work.

Share Improve this question asked Jun 25, 2016 at 2:53 dcp3450dcp3450 4753 gold badges12 silver badges25 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

I figured this out right after I posted the question but thought it would help someone who ran into the same issue. I have to go to:

Network Admin -> Sites -> edit a site -> Settings -> change "site url" and "home"

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749206180a317251.html

最新回复(0)