301 Redirect and Canonical link tag pointing in opposite directions!
-
I'm working on a site which redirects the non-WWW version to WWW version
so, for example https://website.com/page redirects to https://www.website.com/page
However, canonical link tags have been set up on the page - pointing back to the non-WWW
so for example
Q - is this going to cause issues and should the canonical be updated to the same version as the redirect?
-
As Brett and Gaston said, this is not ideal, but also not the worst thing. You'll probably have both non-WWW and WWW versions rank for awhile, then Google will start ignoring your canonicals.
As Gaston said, it's pretty simple to change canonicals - I would recommend doing that. Otherwise, you're showing Google that your canonicals don't match your actual site, and they may start ignoring them in the future. It's worth keeping your site structure clean!
Best,
Kristina
-
Canonicals are not absolute directives, so Google will eventually sort out which of the two signals is more important. My guess is that the redirect takes precedence, because if they displayed the canonical to a user in search, it would be displaying a URL that sends users through a redirect which is a poor experience and they take pains not to do that.
When there are confusing signals like this out there, Google will do its best to sort out these issues and John Mueller has repeatedly stated "we do a pretty good job" at figuring it out, but he almost always adds a disclaimer that it's "better" to have a less confusing structure.
In plain english, it's not a catastrophic error, but it's something you need to clean up as part of your optimization efforts.
-
Hi there!
Yes, it could cause short term issues. Google will not understand which version you want to be shown in the results even though the user experience is the correct.
There is not that much work to update the canonical tags in order to be the same version.Best luck.
GR
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is it best practice to have a canonical tags on all pages
The website I'm working on has no canonical tags. There is duplicate content so rel=canonicals need adding to certain pages but is it best practice to have a tag on every page ?
Intermediate & Advanced SEO | | ColesNathan0 -
Is Canonical Tags a Good Option With 2 Similar Sites?
I have an existing ecommerce site, on a Yahoo platform. I have recently started a different site on the Magento platform with substantially/almost entirely the same products and categories. For various reasons, I won't be ready to do a 301 redirect to the new domain for about another 8 months. I have 4 questions: Is it a good idea to use canonical tags in the meantime? Is there a way to know if the is cannibalization between the sites? They rank for different keywords. Will I lose all traffic and rankings for the Yahoo site if I go the canonical route? If I remove the canonical tags at a later point, will the ranking and traffic of the Yahoo site come back? Thanks in advance for your advice.
Intermediate & Advanced SEO | | Kevin_Hatanian0 -
How long should I keep the 301 redirect file
We've setup an new site and many pages don't exist anymore (clean up done). But for many of them we have new pages with new url's. We've monitored the 404 and have now many URL's redirected with 301 (apache file). How long should we keep this in place? Checking all links manually to see of new url is in place of the old url (in google) is too much work. tx!
Intermediate & Advanced SEO | | KBC0 -
301 from a defunct site due to great link profile
Hi there Would really appreciate your help in dealing with the following scenario: My client is an authority brand in their sector. They were bought end 2011, and a new website was launched under the new owner's brand. For whatever reason no 301 redirects were put in place from the old site to the new site. I am now auditing the new site and the traffic is pitifully low, way lower than they used to enjoy on the old site. The old site is defunct and Google is no longer indexing it. However OSE shows that the link profile of the old site was very good with thousands of good quality links, whilst it is non-existent for the new site. I am thinking that even though Google does not index the old site, we should try and get access and put 301s in place on the old pages to help transfer across all the link juice to boost the new site. Do you agree or am I missing something here? Will page rank be transferred across even though the old site is dead? What else could we do? Would change of domain in WMT help? Although how would that work for a defunct site? We should probably 301 anyway as it would be good to ensure that folk following all those links can find my client's new site, but it would be great if page rank flowed too! All ideas appreciated! Many thanks
Intermediate & Advanced SEO | | Chammy
Wendy0 -
301 Redirect To Another 301 Redirect
Hi, We have a client with an old domain that they want to redirect to their primary domain. They also have a few older domains pointing to the old domain. Do you recommend leaving them as redirects that point to the old domain? This will create a redirect to a redirect situation. Or, is it better to go ahead and redirect those older domains to the primary one's, removing one layer of redirect? Thank you! Jessie
Intermediate & Advanced SEO | | JessieT0 -
Redirect 301
Hi, I `m redirecting some pages in htaccess The first 15 pages that i redirected it worked. But the last 3 dont work, and i cant figure it out why it is not working. Redirect 301 /analyseverktoy/ /webanalyse
Intermediate & Advanced SEO | | SGacic
Redirect 301 /index.php/ledige-stillinger/ /
Redirect 301 /?page_id=352/ / Anu suggestions?0 -
301 redirects and Blogger - moving blog
Is there any way to add 301 redirects to individual posts on a blogger-hosted blog? We're getting ready to finally move our blog off of Blogger and onto our own webserver. We're probably going to use BlogEngine.net to run it. right now the blog is located at blog.MySite.com. We're probably going to move it to MySite.com/Blog. We don't have any really popular posts and we only really get ~10 visits a day on about 70 posts. Just trying to figure out the best way to handle this without inadvertently shooting myself in the foot.
Intermediate & Advanced SEO | | _JP_0 -
301 vs Changing Link href
We have changed our company and want to 301 old domain from new domain in order to transfer the benefits of backlinks (DA: 50, 115 Linking Root Domains). I have the ability to modify around 50% of the backlinks. So my question is: Instead of redirecting all the links, should I update the 50% to link to the new domain instead of relying on redirects? Would this possibly trip an algorithmic filter and devalue these links? Or should I just do a 301 and not worry about modifying the links?
Intermediate & Advanced SEO | | Choice0