• axtran

    (@axtran)


    Hi, I recently set up multisite for beworks.com. Everything was working fine, however, they also use another domain, beworks.ca

    At first, anything going to beworks.ca was redirecting to a page that said ‘Registration is disabled.’ So, I included NOBLOGREDIRECT in wp-config.php and made any such pages go to http://beworks.com

    Now I’d like to know if there’s a way to allow both .com and .ca links to work as-is, because sometimes this client prefers to create links with the beworks.ca domain e.g. beworks.ca/about-us, which is redirecting to the beworks.com homepage instead.

    Basically, allowing .com and .ca to work and not having to use NOBLOGREDIRECT.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • jkhongusc

    (@jkhongusc)

    Why dont you create a subsite and map it to beworks.ca? Maybe I am not understanding the situation.

    Or if you want your main site, beworks.com, to also serve as beworks.ca you can do what using the MU Domain Mapping plugin.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Now I’d like to know if there’s a way to allow both .com and .ca links to work as-is,

    You can do this in your .htaccess but it would be to redirect .ca to .com.

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

    Put that ABOVE your WordPress lines. That means it’ll take effect before the NOBLOGREDIRECT kicks in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site with multiple global domains behaves strangly with multisite’ is closed to new replies.