Hreflang tags with link to redirect loop
-
Hi guys,
I'm having a bit of an issue on a client site that I'm hoping someone can help me with. Basically, the client has two domains, one serving users in the Republic of Ireland (http://www.americanholidays.com), showing Euro prices, and the other serving users in Northern Ireland (http://www.americanholidays.com/gb_en/) showing £ prices.
The issue I'm having is that the URL for the Northern Ireland page has a 302 on it and goes through another 2/3 301 redirects until it resolves as http://www.americanholidays.com, however it does then show the £ prices. You can see the redirect chain here: http://tools.seobook.com/server-header-checker/?page=single&url=http%3A%2F%2Fwww.americanholidays.com%2Fgb_en%2F&useragent=1&typeProtocol=11
The homepage is using the Hreflang tag, and pointing search engines to serve the http://www.americanholidays.com/gb_en/ page to users using EN-GB as their language. The page is also using a self-referencing canonical, which I believe may negate the whole Hreflang tag anyway?
My main question is - is the fact that the Hreflang for the gb_en page is pointing to a chain of redirects negatively affecting it? (I understand too many redirects are never good). Also, is the canonical negating the Hreflang?
Any help/info would be great as I just can't get my head around it!
Thanks guys
Daniel
-
Hi Aleyda,
Thanks so much for your in-depth answer! You have confirmed what I suspected is the case.
I've been working with dev to try and get this issue fixed, and hopefully it will be soon!
Thank you again.
Daniel
-
Hi there,
The hreflang annotation along the canonical tags are correctly implemented on the page, the issue you have is regarding the redirects... and it's a big issue since your UK page is not even indexed because of it.
So, to clarify, this is the logic that you should follow with hreflang annotations across canonicals, your configuration says:
When on www.americanholidays.com:
With rel="canonical" href="http://www.americanholidays.com/" /> that the original version is itself, which is ok.
With rel="alternate" hreflang="en-ie" href="http://www.americanholidays.com/" /> that this page is targeted to English speakers in the Republic of Ireland.
With rel="alternate" hreflang="en-gb" href="http://www.americanholidays.com/gb_en/" /> that this is the alternative version of the page targeted to English speakers in the UK.This is all ok! It should be the other way around for the UK version... when on http://www.americanholidays.com/gb_en/ it should be:
With <link <span class="html-tag">rel</link <span>="canonical" href="http://www.americanholidays.com/gb_en/" /> that the original version is itself, which is ok.
With <link < span="">rel="alternate" hreflang="en-ie" href="http://www.americanholidays.com/" /> that this page is the alternate targeted to English speakers in the Republic of Ireland.
With <link <span class="html-tag">rel</link <span>="alternate" hreflang="en-gb" href="http://www.americanholidays.com/gb_en/" /> that this is the page targeted to English speakers in the UK. </link <>Unfortunately I cannot check what you have in the UK version of the page because of the mix of 302s and 301s redirects that you have towards the Irish version, which are causing that it doesn't even get indexed on Google:
Eliminate the redirects -each page should be accessible on its own... and if you want at some point refer Irish users that might end-up going to the UK version or viceversa, what you should do is IP detection and show a little banner recommending that there's a better option for that country but not automatically redirects anywhere-. If you do this and the proper hreflang annotation configuration in all of the pages along with a geotargeting of the /gb_en/ directory in the Google Search Console to the UK (https://support.google.com/webmasters/answer/62399?hl=en) you should have an ok working international Web configuration.
Thanks!
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
-
Redirects Advice
We have many redirects in place - and sometimes 2 in a chain. Is there a recommended time you should have a redirect in place?
Technical SEO | | Caroline_Ardmoor0 -
301 Redirects
Looking for the best way to do the following. Business has changed its name, and has also become a corporate store. The old domain name is now no longer needed as a website page has been created inside the main corporate site. Obviously i dont want to loose all the traffic that we had and want to redirect them but there is a problem, that im unable to redirect the old domain to the new one due to office 365 installed on the hosting platform, and the old emails will need to run for another 6 months. I can remove the old site and put a landing page up, but i still need to redirect all the pages to the new site, and there is approx 50+ of them. My main question is i currently have atleast 50+ redirects already in there due to seo changes over the years, some would go back atleast 5 years, whats a safe amount of time that i can remove the older redirects And am i going about this the right way so i dont loose all the hard work on rankings etc
Technical SEO | | Dunjoko0 -
Hreflang and canonical
Hi all, I'm hoping someone can help me solve this once and for all! I keep getting hreflang errors on our site crawls and I cannot understand why. Does anything here look off to you? Thank you! JGdWcqu
Technical SEO | | eGInnovations1 -
Disavow links old links
We have built a lot of sites and there a few sites we no longer manage or want any association with. When I have looked at webmasters I can see 20 to 200+ odd links back to our site. The page however at source has no reference to our website. I have searched the code but there isn't anything. Is it safe to disavow these or just leave them?
Technical SEO | | Cocoonfxmedia0 -
H1 Tags the same as Title Tags and other meta questions
I run an ecom store that has about 800 live products. When everything got set up, no one set up the title tags correctly. So I am going through to update them in bulk. What I was going to do was to take the product name (which serves as the H1 tag), use that with a postfix | CompanyName. If length is an issue I trim it down. But the question is, will having essentially duplicate information in here be an issue? Also, when someone was setting up meta descriptions, they often used basically the product name or a half sentence. Would it be better to remove the descriptions and allow google to decide? I even had some that were literally just the brand name of the product, which I already removed.
Technical SEO | | ShockoeCommerce0 -
Wordpress and Redirects?
I want to update my permalinks - actually I want to change the URL's to fit the content and keywords better. I can choose "edit" the URL, but don't I need a redirect? I don't see any htaccess Plugin installed.......is that what I need to be able to change my URL's in Wordpress?
Technical SEO | | cschwartzel0 -
Slug redirect
Hi All, I'm facing a small yet big problem on one of my sites that I'll try to explain: I have a site with thousands of URL's, all with an odd link structure, like index.php/modules?=name=Video , etc I want to build a proper link structure and for that I'll have to replace that links. My question is: 1. Will I have any relevant SEO problem to do 301 redirects from the old links to the new?
Technical SEO | | nunob.staredition
2. Should I do it all at the same time or do it by parts?
3. What options do I have to avoid give not found errors / redirects for the old links? Thanks for the help.0 -
Internal linking to subdomains
Hi *, I have a main site called example.org, and a lot of user generated pages to foo.example.org / bar.example.org and so on. Most of those pages link back to example.org. In example.org I have a page that links to all subdomains. How can I optimize the pagerank of the list page? Should I add nofollow to subdomain sites to avoid passing link juice to those sites and keep normal linking from subdomain sites?
Technical SEO | | ngw0