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
-
302 Redirect Question
After running a site crawl. I found two 302 redirects. The two redirects go from: site.com to www.site.com & site.com/products to www.site.com/products How do I fix the 302 redirect and change it to a 301 redirect? I have no clue where to start. Thanks.
Technical SEO | | Ryan_1320 -
301 Redirect Url Within a Canonical Tag
So this might sounds like a silly question... A client of mine has a duplicate content issue which will be fixed using canonical tags. We are also providing them with an updated URL structure meaning rwe will be having to do lots of 301 redirects. The URL structure is a much larger task that than the duplicate content so i planned to set up the canonicals first. Then it occurred to me id be updating the canonical tags with the urls from the old structure which brings me to my question. Will the canonical tags with the old urls redirect credit to the new urls with the 301? Or should i just wait until we have the new url structure in place and use these new urls in the canonicals? Thanks!
Technical SEO | | NickG-1230 -
Links below linking (not sitelinks)
Hi All, Please can you let me know the name and / or point me at an article / blog / directory on how best to achieve additional links under a search engine listing (I don't mean site links) e.g. I do a search for 'home insurance' on Google.co.uk and under the listing for Compare the Market it has - home insurance, building insurance and landlords insurance. Thanks for your help!
Technical SEO | | Joseph-Vodafone0 -
.htaccess redirects
I've done some research but can't find a good answer to this question. Here's my situation: Site redirects from example.com to www.example.com just fine. However, it doesn't work so well for internal pages. My site incorrectly redirects (non-www) example.com/page2 to www.example.com when it should instead go to www.example.com/page2 So I need a method to redirect non-www internal pages to www versions. Currently I have this in my .htaccess - do I need to modify the rules? RewriteEngine on
Technical SEO | | 3plains
RewriteCond %{HTTP_HOST} !^www.example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L] Thanks0 -
• symbol in title tag
We have a few title tags with a circular dot symbol, which is created by the code "•" Humans see a dot, but googlebot sees • Does this negatively impact our SEO, or is googlebot aware that **• == *** to human eyes
Technical SEO | | lighttable0 -
302 Redirect of Home Page - Lost Link Juice?
I've got a new client whose site is set up to redirect the home page to another URL, like www.example.com, redirecting to www.example.com/home/, using a 302 redirect. Am I correct in assuming that links pointing directly to www.example.com are not passing their full value because it is being redirected with a 302 rather than 301? (In a nutshell, I want to make sure this resource is still accurate: http://www.seomoz.org/learn-seo/redirection)
Technical SEO | | kpclaypool0 -
No results with Link Analysis
So I have been working with a domain since November last year that still shows no improvement in regards to the link analysis. I am baffled because we have gotten them onto the first page on Google for a few of the keywords we are optimizing. Any help with this is greatly appreciated and I am a noob so definitely open to learning. Thanks in advance to all of you. Domain in question - www.modernportablerefrigeration.com Domain is currently on a shared server if that makes any difference. Cordially, Todd Richard admin@richfinn.org
Technical SEO | | RichFinnSEO0 -
Isapi rewrite syntax for partial link redirects
I need to redirect a number of partial (incomplete) redirects. The listing in Google Webmaster Tools looks like this: learn/how_to_dr learn/howtodrea/a learn/ingredie.. learn/step_by_step_instruc When I try and use Isapi to redirect these, It does not work. Is there a specific syntax I need to do to accomplish this?
Technical SEO | | dreadmichael0