0

On Searching anything on google chrome regarding my sitecore website then it showed 5 digit language code in search page breadcrumsen-us in the US region, not able to replicate in indian region can it be resolved anyhow? we only want two digit url

4
  • You can set 'languageEmbedding' to'Never' in LinkManager. bugdebugzone.com/2014/02/… Aug 9, 2023 at 6:11
  • would it be removing the whole language code? We need 2 digit language code
    – Vinesh
    Aug 9, 2023 at 6:29
  • yes it will remove whole. I suspect, you will need some customization in LinkManager to change that code. Do check my answer below, you may need to shift your focus to sitemap fist. Aug 9, 2023 at 6:33
  • I have written code to customize language in URL, but I want to remove those pages which already present in google indexing
    – Vinesh
    Aug 9, 2023 at 6:37

1 Answer 1

0

Search Engine crawls website urls through Sitemap. You can check if you have embedded language in US region site. If yes, you need to get rid of that. Once you update it, you can notify google about change in sitemap manually through this url,

http://www.google.com/webmasters/sitemaps/ping?sitemap=http://www.yoursite.com/sitemap-file.xml

You can find how it works for other search engines, else you will have to be patient since search engines have already crawled urls of your site. It will update gradually.

And, at last, you can get rid of language code from urls by setting 'languageEmbedding' to'Never' in LinkManager.

Change Language Embedding

2
  • There are only 2 digit language code in sitemap
    – Vinesh
    Aug 9, 2023 at 6:26
  • Then I assume this is just re-indexing your new sitemap. You can try above url to let Google know about you sitemap changes. I am not sure, how much time would that take to reflect though. Aug 9, 2023 at 6:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.