multi-site setup and multiple domain hosting

I've read through the documentation several times and still cannot get mult-site and domain mapping to work properly. I have multi-site working and the domains mapped, but none of the posts will show up. For instance, the domain will work, but none of the Posts are mapped. I’m using the Domain Mapping plugin.

- http://worldwidenomads.org/hello-world/
- http://therutledgeinsurancegroup.com/blog/

I have the following setup:

------------------------
Domains on the site
------------------------
http://therutledgeinsurancegroup.com
http://worldwidenomads.org/

------------------------------
My .htaccess
------------------------------
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

------------------------------
My wp-admin.php
------------------------------
define('WP_CACHE', false);
define( 'WP_ALLOW_MULTISITE', true );
define('WP_DEBUG', false);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'wp5.dev-null.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define('SUNRISE', 'on');

------------------------
sunrise.php
------------------------
This is a mess. There should I copy or move sunrise.php? I find conflicting answers in the support system. Also, I find multiple versions are installed on the server, one is 598 bytes, another copy is 3,412 bytes. Which one should I use? What about this version from github from back in 2014?
- https://premium.wpmudev.org/forums/topic/different-sunrisephp-for-multi-domain-and-domain-mapping

I've enabled support to the site.

Thanks,

Jim

  • Kasia Swiderska

    Hello Jim,

    There should I copy or move sunrise.php? I find conflicting answers in the support system. Also, I find multiple versions are installed on the server, one is 598 bytes, another copy is 3,412 bytes.

    You should use version that is in latest Domain Mapping plugin. That is only one and correct version. If you installed fresh version of Domain Mapping you will find that file

    You will see in the /domain-mapping/ folder there is a file called sunrise.php. We need to move that (move, not copy) to the /wp-content/ folder.

    So the path to that file will be:

    /wp-content/sunrise.php

    Please see documentation of the plugin https://premium.wpmudev.org/project/domain-mapping/#product-usage

    Remove other files and use one in the domain-mapping directory.

    I checked 404 errors and those are server errors - it can mean that mod_rewrite is not enabled or is not working on your server - in that case contact your hosting provider and ask about that.

    Pretty permalinks are not working also on your main site and that points to problems with mod_rewrite module.

    kind regards,
    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.