[resolved] Domain Mapping for "Site 1" (3 posts)

  1. DomenLo
    Posted 5 years ago #

    Hello. I have a network of sites set up and use the domain mapping plugin to get domains out of them.

    How is it possible to "catch" the original domain without the www to not redirect to the wp-signup page?

    http://www.originaldomain.com works
    originaldomain.com goes to signup


  2. DomenLo
    Posted 5 years ago #

    Guess I'll be answering my own question if anyone else wants to know:

    add this at the start for the main domain in the network

    RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

  3. Glad you solved it. You'll likely have better luck next time posting in the Multisite forum.

    If you would please mark this thread as "resolved" it would be appreciated. Helps everyone keep better track of whose issues are still outstanding. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic