Support » Networking WordPress » Can't get rid of secondary domain

  • Resolved Inposure



    * 1 stand-alone self-hosted WP blog
    * 1 multisite self-hosted WP blog with three domains (main),,

    I decided to finally incorporate the old into my multisite setup.

    I didn’t fiddle with DNS settings, as it works just fine adding a new domain to /etc/hosts on both server and client. installed fine, and I shaped it as planned.

    Then I changed the apache configuration to let point to my mulstisite install, and restarted. I added in WP and made it a primary domain.

    From my point of view, all these steps are just PITA, since I don’t want subdomains, but real domains. Therefore I want to get rid of the initial and just retain, just the way I did with my other three domains.

    This obviously involves poking around in all option pages, but somehow I just can’t get rid of it entirely this time. In the admin panel, the Web Sites menu still retains, although all references to are wiped from the database (I did a thorough grep of a dump), except for a text string referencing a google search on in the panel prefs (which possibly can’t be the culprit).

    What am I missing here? Where should I go to kill the last instance of

Viewing 10 replies - 1 through 10 (of 10 total)
  • What domain mapping plugin are you using?

    WordPress MU Domain Mapping

    Did you check the box to allow remote login?

    The login page will probably stay, but the dashboard and the rest will go to

    I wouldn’t be messing with the DB, though, as you shouldn’t need to and you’ll break stuff.

    No difference. The point is that WP can’t come up with at random, it must be picked from the DB. And I can’t find it there.

    siteurl =
    home =

    etc. Can’t find anything in the main blogs options or other tables either. is nowhere to be found, not even in serialized array strings.

    Everything works as intended, except for the admin bar and other places where all blogs are listed; it will show rather than in those places.

    If I follow that link, I will be redirected to my 404 page, since there is no such blog. (And later I have also removed from /etc/hosts, and I don’t have a wildcard DNS setting, so the host doesn’t exist.)

    It is not a cache issue… just tried logging in from a fresh test browser. Unless there is a hidden files cache that WP uses.

    So WP doesn’t seem to resolve existing blog URLs from any obvious settings, and I am completely lost trying to follow the code into any depth.

    The plugin you’re using is supposed to seamlessly handle it for you, which is why I’m smacking your hands to get you out of the DB 😉

    WP MUST know that ==, so it can parse your code. If you screw around with that in the DB, you screw up your site (unless you’re only editing the wp_x_posts table to fix internal links, which is sensible and fine).

    Normally I’d point you to for a how-to, since I think you set this up worong, but Otto’s getting a 502 for me 🙁

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    The free plugin still does show the subdomain in some places. There is a paid one that hides them all.

    If you really do plan on editing the db directly and never plan on UN mapping the sites, do a search on *all* tables to find what you missed.

    Actually, no. My and have no corresponding and, since I deleted them. It has been done before.

    WP just needs associate domains with IDs, no need for extra subdomains. That is a leftover from old MU, it shouldn’t be that complicated.

    @andrea_r: OK, so I guess it still is hidden somewhere, just that I can’t find it; have to look more carefully.

    Didn’t know there was a paid version 🙂 But then it makes more sense and gives me a better clue.


    Turned out to be a cache problem after all… APC seems to have stored the old domain name in its cache and never updated, probably because the relevant PHP scripts were untouched. Cache should expire after 2 hours, though. Simple restart of apache revealed the problem.

    Poking myself in the forehead, telling myself to remember…

    You can restart httpd to flush APC, by the way 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can't get rid of secondary domain’ is closed to new replies.