WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Divert visitor to subdomain on first reaching site (3 posts)

  1. David100351
    Member
    Posted 2 years ago #

    Hi,
    I'm to set up a small multisite with the domain structure

    example.com
    a.example.com
    b.example.com
    etc etc.

    Can I immediately redirect visitors who hit example.com to a.example.com, and then use a.example.com as the main user-visible part of the site?

    thanks

  2. dgilmour
    Member
    Posted 2 years ago #

    A redirect statement in your root directory's .htaccess file would do that for you, something like:

    Redirect / http://a.example.com/

  3. David100351
    Member
    Posted 2 years ago #

    Fabulous.

    Thanks very much.

    :D

Topic Closed

This topic has been closed to new replies.

About this Topic