What are SEO best practices for Java Language Redirections?
-
We would like to get some insight on what is the best practice of setting up canonical URLs in the below scenario.
CMS used: Liferay – we believe they are using java. The URL structure at this stage can not be changed to best practices (/en/ and /ar/). Currently the language redirections works like this:
English: https://www.website.com/page1?AF_language=en
Arabic: https://www.website.com/page1?AF_language=ar
Depending how you entered the website last time the root URL will show English or Arabic content without the ‘sufix’:
All 3 different URL’s are being indexed on Google - which is causing duplication and confusion.
We have a few ideas:
Have 2 main URLS:
https://www.website.com/page1?AF_language=en and have the canonical set to https://www.website.com/page1?AF_language=en
https://www.website.com/page1?AF_language=ar and have canonical set to https://www.website.com/page1?AF_language=ar
However, how would you handle the root page which does not have a specific language attached. If we need to make a choice we would go with Arabic, as mainly Arabic pages are indexed on Google with the root domain. This way we would (hopefully) retain the rankings for this.
Question: did anybody had to deal with a similar situation? What would you do in a similar situation and why?
Thanks for all your input.
-
Quite an old style of architecture, it's a shame it cannot be changed. Just so others understand a bit more, what you refer to as a 'suffix' is actually called parameters. In a URL, anything following "?" is parameters
If the language on the root is dynamic (it changes) then it's very difficult for you to hreflang to it effectively as it will conflict the the parameter URLs (which are language based) AND additionally, you won't know for certain what language to hreflang to. That also makes canonicals to the root quite tricky IMO
I think what you are already doing, is the best of a bad situation. At least the parameter-based URLs set a designated language which you can rely on to be the same
If you look at this official URL from Google: https://support.google.com/webmasters/answer/182192?hl=en
Scroll down until you find the heading "Using locale-specific URLs" and look at the table underneath of that heading
Parameter-based geo-targeting, is actually the only one of of multiple architectures, which Google put in red text and explicitly warn people away from. Since the site you are looking at has crossed that red line, you may need to manage expectations about results. If they're going to pick the worst possible format and stick with it, without asking you as a consultant what is best, they've kind of shot themselves in the foot there
P.S: Regarding 'actual' redirects, not canonicals. For sites that have proper sub-folder structure, usually you redirect users based on their location, but allow them to flag select to 'escape' the redirections (which can sometimes go wrong). You also usually exempt Google's user-agent ('googlebot') from regional redirects, as they can only crawl from one location at once and otherwise they think areas of your site keep going up and down due to all your redirects. But with your structure, I'm not sure I would even touch redirects. It's in enough of a state as it is without rolling those dice
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
-
Raise in ranking but drop in visibility, also question about wordpress themed SEO
Hello,
Local Website Optimization | | SharonEKG
my first question is, i started working in August on a website for furniture repair and services that is a local business and who ever setup the website and did the SEO before me implanted the front page content and many other pages in the theme itself, we got Yoast premium and i mostly get bad rank of the page both from Yoast and Moz im guessing because it is simply cant find the links and content that is on the page since it is in the theme code. should i recommend the company to do a makeover and move everything to the actual wordpress page?
Also many changes has been made to the website, too many to track and i have seen in the past month an continues drop lower and lower of our visibility, but yet in the past week and half huge jump in some rankings. some of them are for hard to rank keywords, a jump of sometime 20/30+ up the ranks.
since i dont have a track of all the changes has been made, is there a way to know what cause it? Also one last question,
i have implemented google tag manager and been configuring it for the past month and now i have finally getting close to track all metrics we would like to track, i have removed all google analytics codes that i knew of and managed to find through search through the theme and plugins but yet when i fire up tag assistant it shows two codes the tag manager and analytics, i know it could interfear each other or give false/double readings. is there a way to track it and remove it? i have went through all theme files.. and cant find it.. Thanks!0 -
Best Practices: Different Phone Numbers on the Same Website
Since 2006 www.nyc-officespace-leader.com has promoted my commercial real estate brokerage business. I have been the sole broker listed on the site. As a result, the same phone number has appeared consistently throughout the site. Now I will be adding a colleague to the site (in addition to me) and I am struggling with how to best display my colleague's phone number. The 2nd broker will be adding property listings and blog posts. It was agreed that my phone number would be replaced by my colleagues phone number on his listings and blog posts. Pages that existed before would remain with my phone number. The idea being that leads generated by the 2nd broker's new content get directed to him rather than me. My concern is that having a new phone number listed will introduce an inconsistent phone number and harm our local SEO. I have read that it is absolutely critical that NAP (name, address, phone number) must be 100% consistent otherwise it can cause harm search engine ranking. What are best practices for displaying different phone numbers for different personnel on the same website without harming local SEO efforts? This situation is certainly common, so I would think there must be some work arounds. I have seen "Contact" icons that when clicked show phone numbers. Is there any standard solution for this issue that keeps NAP data consistent? Also, what if we keep the same number in the header but use different numbers in other locations? Is the header a location where we should be extra careful to display the same phone number? Thanks,
Local Website Optimization | | Kingalan1
Alan Rosinsky
Metro Manhattan Office Space, Inc. An example of inconsistent listing pages are: -http://www.nyc-officespace-leader.com/listings/386-w-38th-street-office-lease-2370sf
(Broker "#2) -http://www.nyc-officespace-leader.com/listings/329-545-eighth-ave-office-lease-525sf
(myself) An example of inconsistent blog pages are: -http://www.nyc-officespace-leader.com/blog/the-tech-explosion-impact-on-chelsea-2
(Broker "#2) -http://www.nyc-officespace-leader.com/blog/office-space-build-out-cost
(myself)0 -
Hreflang errors "no return tag" sitemap.xml , and local search landing page with wrong Languages
Really need help , our website when search in google(US) will provide global page (keyword:asus/asus zenfone3). and search console also return "no return tags"another wear thing is when use googlebot crawl sitemap.xml googlebot cannot finish the file less than a quarterCan you please advise on what needs to be edited or changed to make sure my implementation is correct and not returning errors?
Local Website Optimization | | June01270 -
Building a new site and want to be found in both Google.co.uk and Goolge.ie. What is the best practice?
We are building a new site which is a .com site and the client would like to be found in both Google.co.uk and Goolge.ie. What is the best practice to go about this? Can you geo-target two countries with the one site?
Local Website Optimization | | WSIDW0 -
Hiring an SEO Company
I am looking to hire an SEO company each have there own ideas and strengths. My concerns are what is good and what is bad. Here is one company where their Silver Package fits within our budget. But there are a lot of features on here we do know if is it good or bad SEO. I attached the packages they send us. If we were to hire an SEO Company to do our offsite SEO, what should we be looking for that is considered whitehat seo for 2015? zCJowNb
Local Website Optimization | | TIM_DOTCOM0 -
Subdomain versus Subfolder for Local SEO
Hello Moz World, I'm wanting to know the best practices for utilizing a subdomain versus a subfolder for multi location businesses, i.e. miami.example.com vs. example.com/miami; I would think that that utilizing the subdomain would make more sense for a national organization with many differing locations, while a subfolder would make more sense for a smaller more nearby locations. I wanted to know if anyone has any a/b examples or when it should go one way or another? Thank you, Kristin Miller
Local Website Optimization | | Red_Spot_Interactive0 -
Does the Location of my Server effect my SEO?
Does the geographic Location of my Server effect my SEO? HELP US! We are arguing for 3 weeks already. My partner has mentioned multiple times in the past that "since 2013 google does not require your server to be in the country you are targeting for seo"
Local Website Optimization | | DanielBernhardt
And that actually all they care about is if its a good and fast server - not where its physically located in the world. I am a strong believer that the geographic location of your server directly effects your SEO ranking... lets say if you want to target www.google.ru for your seo, best you have a server located in Russia for hosting your website.. WHO IS RIGHT? Choose the winner and base the facts.
If anybody has the correct answer and information to base it on it will help us alot - and maybe even spare some unnecessary violent between us two! we found some articles across the web, sadly they are all dated back to 2012.... Thanks in Advance for all the help guys!0 -
Yoast Local SEO Reviews/Would it work for me?
Hi everyone, I'm looking for some feedback on Yoast Local SEO, and if you think it'd work for our site. www.kempruge.com. Our site is a wordpress site, and there's nothing about it, off the top of my head, that makes me think it wouldn't work, but I've been wrong before. We do use All-In-One SEO, not the Yoast plugin, so I'm not sure if that's compatible.or would cause a problem? (The reason we use All-In-One and not Yoast is because that's what we had when I got here, and I'm worried what would happen if we switched). Also, we have three offices, and I need to be able to do local seo for all three. I know Yoast says it supports multiple offices, but I'd feel more comfortable if someone on here let me know from his/her experience that it did. Anything else you want to add about Yoast Local, I'm all ears! Thanks, Ruben
Local Website Optimization | | KempRugeLawGroup0