$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Domain mapping with Multisite links are wrong|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Domain mapping with Multisite links are wrong

matteradmin9PV0评论

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"

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far