• I’ve got a multisite setup with subdomains. I also have wildcard subdomains configured on my DNS server. I want to set multisite so that the following will work:

    Assuming domain1 does not exist, user goes to:

    domain1.mymultisite.com/posts/some-post

    The user is redirected to:

    mymultisite.com/posts/some-post

    So far, by using:

    define( ‘NOBLOGREDIRECT’, ‘http://mymultisite.com’ );

    I can get users redirected to the main domain.

    Is it possible to have that setup as something like this:

    define( ‘NOBLOGREDIRECT’, ‘http://mymultisite.com/$query_string’ );

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not at this time unless you hardcode that into your .htaccess for redirects, and then you’d have to update it every time you add a new domain.

Viewing 1 replies (of 1 total)

The topic ‘NOBLOGREDIRECT with query string’ is closed to new replies.