WordPress.org

Ready to get started?Download WordPress

Forums

Separate subdomain handling (9 posts)

  1. Boris
    Member
    Posted 3 years ago #

    Hey there,

    I have a WP MS install that is set to using subdomains, which works just as it should. Blog registration is disabled and there will only be a set amount of blogs. I do, however, need to display dynamic content of the main blog on subdomains that are not part of the WP network, but that obviously redirects to the signup page if that subdomain does not correspond to a registered blog. Does anybody know of a way to do that without actually modifying wp-includes/ms-settings.php?

    Thanks for your help!

    ~Boris

  2. dgilmour
    Member
    Posted 3 years ago #

    There's been a similar question raised here http://wordpress.org/support/topic/problem-with-subdomains-1?replies=4#post-2052196, where it's been possible to work round the default behaviour by careful ordering of the DNS records.

  3. Boris
    Member
    Posted 3 years ago #

    Thanks for your reply, dgilmour, but this won't work as my non-wp subdomains are also dynamic, just like the wp ones. There's no DNS record for them, they're part of the whole wildcard thingymajiggy.

  4. If your non-wordpress subdomains are also relying on wildcards then... yeah. I dunno how you can solve that. It's gotta go to one place or the other. can't be both.

  5. Boris
    Member
    Posted 3 years ago #

    Allright, thanks for your answer, Andrea. It'll still be a couple weeks until I have to tackle that problem. If nothing comes up here until then, then I'll modify ms-settings.php. Because of my set amount of WP subdomains that should work. I'll just have to live with all the bad karma by modifying core files :)

  6. Tim Moore
    Moderator
    Posted 3 years ago #

    If you have a set amount of WP subdomains, then manually enter then into your Apache config. Where you would put *.domain.com, put the actual subdomain. At the very end of the list, put your wildcard subdomain pointing to your other app.

    That's about the easiest way you are going to get around it. Modifying Core would be more difficult, I imagine.

  7. Boris
    Member
    Posted 3 years ago #

    Well, but WP would still try to take over and redirect to the register page cause the install is set to using subdomains, wouldn't it? Can't use seperate installations for the WP subdomains cause I need a global user table.

    I've had a look at ms-settings.php already and it'd be fairly easy to hack.

  8. WP would still try to take over and redirect to the register page cause the install is set to using subdomains, wouldn't it?

    well it would... but then with what Tim is suggesting, the wildcard sub would then go to your non WP parts. thus never getting to WP to look up non-existing blogs.

  9. Boris
    Member
    Posted 3 years ago #

    Allright, thanks for clarifying that. I'll give it a go!

Topic Closed

This topic has been closed to new replies.

About this Topic