最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

htaccess - Multisite website configure Domain issue

programmeradmin2浏览0评论

I have multi site website lets say example example/ab and example/cd.

Now I need to add another website in this network which is run on separate domain. lets say mywebsite and mydemowebsite

Now I have to add in existing network but must be run on main domain mywebsite and mydemowebsite

Please suggest solution.

I have multi site website lets say example example/ab and example/cd.

Now I need to add another website in this network which is run on separate domain. lets say mywebsite and mydemowebsite

Now I have to add in existing network but must be run on main domain mywebsite and mydemowebsite

Please suggest solution.

Share Improve this question asked Apr 12, 2019 at 7:18 Vasim ShaikhVasim Shaikh 5515 silver badges13 bronze badges 2
  • So you're trying to mix subdomain and subdirectory multisite? Things have changed since I last looked at this so this might now just be supported, but worst case you just need a version of sunrise.php that will resolve the site IDs correctly - the plugin linked there may still be useful - even if you have to hard-code that yourself. – Rup Commented Apr 12, 2019 at 9:56
  • yes looking for mixup – Vasim Shaikh Commented Apr 12, 2019 at 10:01
Add a comment  | 

1 Answer 1

Reset to default 0

As per the instructions for setting up WordPress MU Domain Mapping, sunrise.php needs to be placed directly in your /wp-content directory. It's not a plugin in the traditional sense, so can't be placed in mu-plugins (or even plugins for that matter).

Setting up this plugin can take a bit of manual work so take care to follow the instructions carefully, including the modifications you need to make to wp-config.php.

发布评论

评论列表(0)

  1. 暂无评论