WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
mapping multiple domains on WP 3.01 and WordPress MU Domain Mapping 0.5.2 (5 posts)

  1. rentageek
    Member
    Posted 3 years ago #

    Can we please work on writing a definitive guide to getting this setup correctly?

    Here are the steps I've got down so far:

    At this point, we'll assume:
    a. you have one copy of wordpress installed in the root of the web server
    b. for each domain that you want to host in MU - your DNS is setup with ARecord @ web.server.ip.or.hostname

    BEFORE INSTALLING PLUG-IN - Install Network (MU) for WordPress 3.0

    1. To enable this feature append following line in wp-config.php:
    define('WP_ALLOW_MULTISITE', true);

    2. Log out and log back in to your WP backend on your domainA/.

    3. Go to Tools > Network choose the sub-directories option and click install.

    4. Edit wp-config.php with the additional lines and create the .htaccess as noted.

    5. Log out and Login - Now, you should be Super Admin.

    INSTALL PLUGIN

    6. Go to Plugins > Add New (at top of page)

    7. Search for: WordPress MU Domain Mapping

    8. Install it and activate it

    9. Create /wp-content/mu-plugins directory

    9. Copy /wp-content/plugins/wordpress-mu-domain-mapping/domain_mapping.php to /wp-content/mu-plugins/

    10. Copy /wp-content/plugins/wordpress-mu-domain-mapping/sunrise.php to /wp-content/

    11. Add the following to wp-conifg:
    define( ‘SUNRISE’, ‘on’ );

    12. On the WP Dashboard /wp-admin/ - go to Sites and create the site for the second domain you would like to use in MU (note SITE ID when you create it - this was not clear to me at first).

    13. DO NOT EDIT THE DOMAIN MAPPING YET!! If you do you will get redirects to something like //com/domainamecom because this plugin does weird stuff!!

    14. Go to the backend for the SITE you just created and click on Tools > Domain Mapping

    15. Add the Domain name(s) you want to use to point to this SIte.

    Rinse, repeat.

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. rentageek
    Member
    Posted 3 years ago #

    Andrea_r! You seem to be the expert on multisite. Thanks for seeing my post!

    The reason that I started writing a new tutorial is that I followed both of those tutorials and neither of them are 100% clear on exactly which settings in every step they used and exactly what to do.

    For instance, is it easier to use mu with sub-domains or sub-directories with the domain mapping plugin?

    Ironically, I thought I had everything setup correctly, but I have not been able to get the domain mapping plugin to work completely... The wp-admin pages link correctly but the /about/ that is in WP by default leads to a 404 error.

    Do you think this has something to do with my rewrite rule in .htaccess?

  3. The reason that I started writing a new tutorial is that I followed both of those tutorials and neither of them are 100% clear on exactly which settings in every step they used and exactly what to do.

    They are if you;re on cpanel. ;) Every server is different, which is why you;re not going to find anything that says "go here and do this". At least not for free.

    Also, in your instructions above, it works for you as your main domain where you installed WP also answers to the IP address. Not everyone has that setup.

    it's also mainly server setup, not for beginners but for people who either know their way around their own server or want to learn.

    For instance, is it easier to use mu with sub-domains or sub-directories with the domain mapping plugin?

    It no longer makes any difference. At one point in WPMU, you could not map subfolder blogs. Now you can. but after they are mapped, the format they started in is irrelevant.

    The wp-admin pages link correctly but the /about/ that is in WP by default leads to a 404 error.

    Do you think this has something to do with my rewrite rule in .htaccess?

    Could be.

  4. rentageek
    Member
    Posted 3 years ago #

    Can you help me?

    This is my .htaccess:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic