Support » Networking WordPress » moving subdomain multisite with buddypress

  • Well, the hard part is behind us, we have successfully moved a rather larger and over-complicated multi-site setup with buddypress. Now we’ve got the old domain that we need to redirect.

    We’re doing a simple 301 redirect on the main site now, but I also want to map the subdomains to their new subdomains under the new domain.

    ie: should resolve to Right now the regex is just catching the root domain and properly redirecting all traffic, including the subdomains, to the root of newdomain.

    I was thinking something like (.*) http://$ would work but no such luck. Any regex/htaccess geniuses out there?

Viewing 1 replies (of 1 total)
  • RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+) [NC]
    RewriteRule ^(.*/) http://{REQUEST_URI} [PT,L]

    Maybe? It seems right in my head, but I’ve not tested it…

Viewing 1 replies (of 1 total)
  • The topic ‘moving subdomain multisite with buddypress’ is closed to new replies.