WordPress.org

Forums

Redirection
wordpress multisite : main site redirect to network site (4 posts)

  1. iainsimons
    Member
    Posted 2 years ago #

    Hello!

    We have a multisite install, which serves a number of subdomains thus :

    Mainsite.org

    Site1.mainsite.org

    Site2.mainsite.org

    and so on...

    What I'm trying to do, is redirect 'mainsite.org' to redirect to 'site1.mainsite.org' for a few months, whilst an event is taking place.

    Could anyone advise as to the best way of doing this?

    Many (many) thanks in advance....!

    http://wordpress.org/extend/plugins/redirection/

  2. steciorg
    Member
    Posted 2 years ago #

    Hi, Were you able to figure out a solution for this? I'm kinda looking for the same thing and I saw references in the wp-config file but I don't know if that's the right way to do it.

  3. bws-online
    Member
    Posted 2 years ago #

    I'm looking to do this kind of thing as well -- any updates?

  4. bws-online
    Member
    Posted 2 years ago #

    I ended up creating a new template in my theme, and then applied that template to the homepage on my http://www.mainsite.com. In that template I have something like this:

    <?php
    /* Template Name: Page - Main Site Home */
    
    header( 'Location: http://site1.mainsite.com' );
    
    ?>

    NOTE: I didn't use the Redirection plugin (or any plugin) for this, but thought the info might be helpful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic