-
Hello,
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:
add_filter(‘wpseo_canonical’, ‘swpseo_canonical_domain_replace’);
function swpseo_canonical_domain_replace($url){
$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.
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘Multi domains on 1 wordpress source’ is closed to new replies.