We are an Indian company and have an online store. We sell in India as well as abroad. The products are sold at different prices in India and abroad and there are two site versions for Indian prices and International prices as
URLs of both versions are submitted to Google and IP based redirection is applied through PHP code to all URLs of both types as below:
If a URL
www.example.com/international/xyz-123.htmlis opened in India then it redirects to
If a URL
www.example.com/xyz-123.htmlis opened in a country outside India then it redirects to
Now we know that if URL A redirects to URL B then Google Indexes URL B.
Given the above rule we understand that:
www.example.com/xyz-123.htmlis crawled by Google say in US, it will redirect it to
www.example.com/international/xyz-123.htmland this will get indexed instead of
www.example.com/international/xyz-123.htmlis crawled by Google in India, it will redirect it to
www.example.com/xyz-123.htmland this will get indexed instead of
Will the above scenario eventually lead Google to index both
www.example.com/international/xyz-123.html or will Google not index either of the URLs?