WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
[resolved] Not working after changing network domain name (10 posts)

  1. Robert
    Member
    Posted 2 years ago #

    We just moved our network to a new base domain name and the domain mapping stopped working. Mapped domains were resolving to the base domain name. I uninstalled the plugin and deleted the two tables from the database. I then re-installed the plugin, but the tables were not recreated in the database. How can I get the plugin to recreate the database tables?

    Thanks!

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

  2. Robert
    Member
    Posted 2 years ago #

    Okay, I got the tables back by running these queries in the database:

    CREATE TABLE IF NOT EXISTSprefix_domain_mapping(id` bigint(20) NOT NULL auto_increment,
    blog_id bigint(20) NOT NULL,
    domain varchar(255) NOT NULL,
    active tinyint(4) default '1',
    PRIMARY KEY (id),
    KEY blog_id (blog_id,domain,active))

    CREATE TABLE IF NOT EXISTS prefix_domain_mapping_logins (id bigint(20) NOT NULL auto_increment,
    id varchar(32) NOT NULL,
    user_id bigint(20) NOT NULL,
    blog_id bigint(20) NOT NULL,
    t timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    PRIMARY KEY (id))`

    However, now I'm back to where I started with the mapped domains just going to the network's base domain. Anybody have any ideas?

  3. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    Did you re-add the domain maps?

  4. Robert
    Member
    Posted 2 years ago #

    Hi Ron!

    If you mean by going to the sites with domain mapping and re-adding them via Tools->Domain Mapping, then yes.

    Thanks!

  5. Robert
    Member
    Posted 2 years ago #

    Can you tell me if prefix_domain_mapping_logins should have anything in it or not?: it has structure but there is no data to browse. prefix_domain_mapping contains a list of the domains we wish to map.

    thanks again!

  6. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    That table is for the remote/cross domain login. If you're not using that feature, the table will be empty.

    The domains ending up at your main site could be your web server configuration.

  7. Robert
    Member
    Posted 2 years ago #

    Thanks Ron. That makes sense.

    I talked to our server admins and they said the following:

    We have a dns alias pointing to the cluster that hosts our site. We have a vhost with a server alias for http://www.ourwordpresssite.schooldomain.edu that redirects to ourwordpressite.schooldomain.edu

    mappeddomain.schooldomain.edu then is an alias to http://www.ourwordpresssite.schooldomain.edu

    They ensure me that this is the same configuration we had before we changed the site from ourwordpressite2.schooldomain.edu to ourwordpressite.schooldomain.edu (the Domain Mapping was working fine prior to the domain name change on the network base site).

    Any ideas or suggestions on how to proceed? Thanks again!

  8. Robert
    Member
    Posted 2 years ago #

    I just had them change mappeddomain.schooldomain.edu to be an alias for ourwordpresssite.schooldomain.edu instead of http://www.ourwordpresssite.schooldomain.edu - unfortunately that didn't seem to make a difference...

  9. Robert
    Member
    Posted 2 years ago #

    Ron,

    Turns out the alias to www. wasn't commented out so it was still going there. Everything is working again now.

  10. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    awesome :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic