WordPress.org

Support

Support » Multisite » Hook into subdomain not found

Hook into subdomain not found

  • arashster
    Member

    @arashster

    Hi,

    Imagine I have wordpress multisite running on domain1.com in subdomain mode.

    I want to redirect any subdomain that DOESN’T exist on domain1.com to another subdomain on domain2.com

    For example, if mysubdomain.domain1.com doesn’t exist, I want to redirect to mysubdomain.domain2.com

    ex.
    first.domain1.com -> first.domain2.com

    But if second.domain1.com exists, I want the regular WP multisite blog to load up.

    How can I accomplish these? How can I hook into “subdomain not found”?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hook into subdomain not found’ is closed to new replies.