A 301 redirect to a page with a rel canonical to a page with a 301 question...
-
MOZ registers thousands of DC and Duplicate titles on a Drupal site which has a little strange setup.
Example:
www.1234.com/en-us 301 redirects to www.realsite.com/en-us which has a rel canonical to www.1234.com which 301 redirects to www.realsite.com.
If you're still with me I thank you.
My question is since MOZ registers errors, if indeed the rel canonical isn't recognized due to a 301 redirect? -
I agree it's a strange setup and also suspected it would be ignored. I appreciate the answers and will see if there is a way to hardcode a way out of it.
-
It's really difficult to tell what Google will do in these situations, and it's generally a bad idea to chain redirects and caonicals, but I suspect the canonicals will be ignored. The bigger problem here is that the 301 is basically saying that "realsite.com" is canonical, but then the canonical is saying that "1234.com" is canonical. Even as a human, the logic doesn't make any sense, unless I'm missing something. You may see unpredictable results (and unpredictable is usually bad).
-
Hi Phillip,
Check out this great reference by Dr Pete: http://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questions
In a nutshell (if I can get my head around it) rel canonical is 'suggesting' to google which version of a page should be indexed for search purposes while 301 redirects are basically taking you to the canonical version of the page already and therefore is more final in regards both users and bots.
The set up you have (assuming that you want to consolidate 1234.com to realsite.com permanently) has a problem in that you are telling google that realsite.com/en-us has a canonical of 1234.com (which is just a suggestion, not a permanent redirect) and therefore yes the canonical as you say is not being reognised in the way you expect it to be because it is indeed just a suggestion, not a followed link if you see what I mean. I think 301 redirecting the realsite/en-us to realsite.com is the only thing that will be a permanent solution.
Hope I got that right, maybe someone else can chime in....
-
Hi Lynn thank you for your response.
Yes a horrible setup but has something to do with Drupal URL architecture.
In Moz it show's www.realsite.com/en-us and www.realsite.com as the culprits so it seems to ignore the rel cannonical from www.realsite.com/en-us to www.1234.comI might ask the Moz team if Googlebot treats this the same way.
Again thank you for your answer.
-
That is just nasty! Which domain is showing the duplicates? I assume the realsite.com and it is showing duplicates between the / and the /en-us versions? I cannot say if moz is registering the errors in the same way exactly as a search bot would register them, but you are asking for trouble with it.
Can you not simplify the chain? It seems to me that the cross domain canonical is pointless in this case. You have all 1234.com urls 301 to their realsite.com equivalents. OK. If needed canonical the realsite.com/en-us to realsite.com or probably better yet 301 redirect it also. It might need a bit of technical fiddling to get it all set up, but surely there must be a way!
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
-
Canonical URLs all show trailing slash on main site pages - using Yoast SEO for Wordpress - how to correct
We are using Yoast for a number of our sites. We use naked domain as the canonical. I have noticed in the header tags that all our sites show the canonical URLs as having a trailing slash: Example: http;//foxspizzajc.com, when I look at the source code, it shows the canonical as http;//foxspizzajc.com/ Of course, it is much more likely that all sites that link to us will not use the trailing slash - so preferably we do not want that to be the canonical - among other reasons. Does this need to be fixed so the trailing slash is removed? I cannot see how to do this in Yoast SEO or in Permalinks structure for Wordpress. Sorry for my ignorance. Thanks for any help.
Moz Pro | | Adam_RushHour_Marketing1 -
Help with 301 redirects.
Hi, I would like to say thank you in advance to all who help me with my question. MOZ crawl test showed duplicate content for a site that i just finished. I have www.site.com, site.com and site.index.html( all are the home page) So i have decided to 301 redirect all pages to site.com. And I also learned that when you do a 301 redirect all link juice is passed to the page that i redirect to. Here is my question: If someone links to my site using www.site.com instead of site.com in the future, will the 301 redirect still pass the pr to the page?( site.com). Or it only does, at the time of redirect and not in the future. I know this might be a stupid question but i am really new to this and couldn't find an answer for that. Thanks guys
Moz Pro | | Davit19850 -
Moz crawl only shows 2 pages, but we have more than 1000 pages.
Hi Guys Is there anyway we can test Moz crawler ? it showing only 2 pages crawls. We are running website on HTTPS ? Is HTTPS is issues for Moz ?
Moz Pro | | dotlineseo0 -
Bad code on Learn Seo Redirection info Page
Is it just me, or is the Redirection resource page missing the exclamation point (!) in this code. If so, this could really mess someone's site up if they copy and paste. http://www.seomoz.org/learn-seo/redirection http://screencast.com/t/n7lknZ32G9xF Redirecting Canonical Hostnames: The original developers at SEOmoz needed to redirect any requests that do not start with www.seomoz.org to make sure they included the www. They did this not only because it looks better, but to avoid common canonicalization errors. Redirect: http://seomoz.org/To: http://www.seomoz.org/ Redirect: http://mail.seomoz.org/To: http://www.seomoz.org Redirect: http://seomoz.org/somefile.phpTo: http://www.seomoz.org/somefile.php Solution: Add the following directive: RewriteCond %{HTTP_HOST} ^seomoz.org [NC]RewriteRule (.*) http://www.seomoz.org/$1 [L,R=301] Explanation: This directive tells apache to examine the host the visitor is accessing (in this case: seomoz.org), and if it does not equal www.seomoz.org redirect to www.seomoz.org. The exclamation point (!) in front of www.seomoz.org negates the comparison, saying “if the host IS NOT www.seomoz.org, then perform RewriteRule.” In our case RewriteRule redirects them to www.seomoz.org while preserving the exact file they were accessing in a back-reference. *emphasis added by me
Moz Pro | | squareplug0 -
Too many on-page links
one of my SEOmoz pro campaigns has given me the warning: Too many on-page links and the page in question is my html sitemap. How do i resolve this because I obviously need my sitemap. How do i get around this?
Moz Pro | | CompleteOffice1 -
Different Moz Scores Between Page and Subdomain
The Moz scores for a page-specific website:: www.website.com are different than the subdomain: www.website.com/. www.website.com: Page MozRank: 4.58
Moz Pro | | DanSpeicher
Page MozTrust: 4.9 www.website.com/ Subdomain MozRank: 5.21
Subdomain MozTrust 5.18 Does that have any significance? Should I be routing pages to the " / " version? Thanks, Daniel0 -
How do I delete a question?
Having problems with this question, old edits get saved as copies of the question, even this one had to be edited twice, originally an old version of an edited question. How do I DELETE a question I authored (like this one) I see no button for it.
Moz Pro | | AspenFasteners0