I have a website in Persian language and translated some of my popular posts into English and added this header in
<head> section in both of the pages (not entire site):
<link rel="alternate" hreflang="fa" href="http://bytegate.ir/%DA%86%DA%AF%D9%88%D9%86%D9%87+%D8%A7%D9%86%D8%AC%D8%A7%D9%85+%D8%AF%D9%87%DB%8C%D9%85/" > <link rel="alternate" hreflang="en" href="http://bytegate.ir/en/how-to-do-something.php">
There is no
canonical tag on the pages. I created a sitemap.xml manually for English version of the pages (because there are no much posts in English language). Here is to sitemap's content:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"> <url> <loc>http://bytegate.ir/en/how-to-do-something.php</loc> <lastmod>2016-02-11</lastmod> <changefreq>monthly</changefreq> <priority>1.0</priority> <image:image> <image:loc>http://bytegate.ir/wp-content/uploads/how-to-do-something.php.jpg</image:loc> <image:caption>How to do something</image:caption> </image:image> </url> </urlset>
I have submitted the sitemap above alongside the one I had for my Persian posts (which is created by All in One SEO Yoast for Wordpress.) At first, I only maintained the other language hreflang in the pages and Google didn't indexed anything. I found out that I should mark all of the hreflangs in each multilingual page.
Now when I resubmit the sitemap, I feel it doesn't get refreshed because there is no pending status and everything is like when the English page is not get indexed in my first try (submitted URLs = 1 and indexed URLs = 0 in Search Console of Google.)
What should I do?
Google does not use the
rel=alternate links in crawling a website and indexing other language pages. You need some form of linking on your site to access the translated sections of your site so that Google is aware of them, then as Google indexes the translated parts of your site it will automatically identify the languages and list them with the appropriate keywords. Do still use the
rel=canonical tags in the header to ensure industry best practices for SEO and so that Google is able to identify that it is simply translated content of the same page rather than different pages entirely.
Easiest way to do this is in the footer of the page or somewhere appropriate to your site add a link to the various translated versions of the page and on the homepage link to the translated versions of the homepage which in turn link to the translated sub pages.