I’ve just moved to Rank math from Yoast. I run multi site on only 1 wordpress source and I used this code to redirect all trafic to main domain:
$domain = ‘mydomain.com’;// replace with your domain
$parsed = parse_url(home_url());
$current_site_domain = $parsed[‘host’];
return str_replace($current_site_domain, $domain, $url);
Is there any solution on RM to run multi site on only 1 WP source without effecting SEO.
The ticket ‘Multi domains on 1 wordpress source’ is closed to new replies.