WordPress.org

Ready to get started?Download WordPress

Forums

Nginx
[resolved] Hide/redirect main multisite blog (3 posts)

  1. moose123
    Member
    Posted 1 year ago #

    I'm using Nginx Helper to run my multisite install. Great plugin.

    Just curious to know if there's a way to hide/redirect the main/root multisite blog while still being able to access it's backend using the plugin.

    So, http://www.mysite.com will redirect elsewhere while still being able to access http://www.mysite.com/wp-login.php and everything on the admin side.

    Thanks.

    http://wordpress.org/extend/plugins/nginx-helper/

  2. rahul286
    Member
    Plugin Author

    Posted 1 year ago #

    @moose123

    You need to handle this in your nginx config

    add something like following in your nginx config

    location = / {
         rewrite ^ something.com permanent;
    }

    Replace something.com with any domain/URL and do NOT forget to reload nginx config for changes to take effect.

  3. moose123
    Member
    Posted 1 year ago #

    Thanks. I think you gave me enough to get this working.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.