Support » Networking WordPress » Multisite and category subdomains

  • Dear all,

    I am setting up a wordpress site (hosted by hostgator in case it matters) and one of the requirements is to move (merge) existing blogger content to the new site.

    The situation is something like this:
    – existing blog is hosted at blogger, and is accessible through subdomain
    – the new site will use domain
    – i want to redirect to where the new content is going to be

    I managed to get this concept working by installing multisite and creating a new site and configuring this site to run on both, old and new subdomains. The problem with this setup is:
    – I need to maintain two sites, which is really not something I want to do
    – I’m not sure how easy it is to aggregate feeds from to the main site

    One option is to create a category menu on site and have the old blogs at /blog/category/blog/ then redirect to this URL. But the problem is, the browser URL is replaced with the new URL, which I don’t really like.
    I’ve tried a subdomain plugin (translating categories to subdomains) but it does not seem to work with multisite (due to that NOBLOGREDIRECT thingy).

    I know multisite is maybe not the best for this particular usecase, but I plan to host other, unrelated sites in the future, so I could really benefit from this setup.

    Thank you.

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


    Lead Plugin Wrangler

    Wait… why is this Multisite?

    Because I can’t figure subdomains with multisite (without setting up a subdomain as a new site).

    It seems I can do a simple redirect from to the new blog with sth like:

    RewriteCond %{HTTP_HOST} ^blog\.myname\.com$
    RewriteRule ^/?$ "http\:\/\/mybiz\.com\/blog\/category\/blog\/" [R=301,L]

    This needs to be before the multisite htaccess rules or it doesn’t work (for reasons I don’t uderstand).

    Is there a way to change this rule in a way that retains URL in the browser?

    Don’t use the Redirection flag on your rewrite rule 😉

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Read for more on how to get .htaccess working like that on Multisite.

    And yes, always put your custom rules above WordPress. Because otherwise you call WP multisite times while redirecting.

    @jesus even if I remove R=301 the browser is redirected.

    @ipstenu thanks for the link… I’m just not sure that is meant to retain browser URL as he’s using R=301 everyhere…

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    She. That’s my site.

    The concepts for how to handle redirect with multiple domains and subdomains is what you needed 🙂 You can fiddle with R as you need.

    Ups, sorry 🙂

    I understand the concept here… if I use this (modified for my site):

    RewriteCond %{HTTP_HOST} ^blog\.ipstenu\.org [NC]
    RewriteRule ^(.*)$1 [L,R=301]

    it works. However, removing R=301 still results in redirect, but this time it’s 302. My guess is it has to do something with multisite.

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Depends on where it’s redirecting to. or the signup page?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multisite and category subdomains’ is closed to new replies.