-
I really like your service and try to use all of tools right now.
And now, i try to fix this option.
‘WWW Canonicalization’
Does your site appear on more than one URL?
The www and non-www versions of your URL are not redirected to the same site.to do this, i have to revise the htaccess file, however, my hosting service doesn’t provide htaccess file since it uses NGINX (EASYWP of Namecheap)…
so i use different method ..
if ( document.domain.substring(0,4).toLowerCase() === ‘www.’ ) {
window.location = document.URL.replace(“//www.”,”//”);
}i use this snippet in my head code so that none of www. subdomain is used.
i found that this method can have a same effect like redirect but rank math doesn’t think it’s solved.
Want to know whether this is good or not for seo purpose.Thank you for suggesting another option to solve this problem if it’s not good.
The ticket ‘Question for curiousity.’ is closed to new replies.