The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Same URL for languages sub-directories

    Same URL for languages sub-directories

    Technical SEO Issues
    3 3 150
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RaquelSaiz
      RaquelSaiz last edited by

      Hi All,

      I have a main domain and 9 different subdirectories for languages,  example:

      www.example.com/page.html

      www.example.com/uk/page-uk.html

      www.example.com/es/page-es.html

      we are implementing hreflang tags for the languages, but we are thinking to get rid of the dashes on the languages URL: -uk or -es, so it will be:

      www.example.com/page.html

      www.example.com/uk/page.html

      www.example.com/es/page.hrml

      would this be a problem? to have same page names even if they are in different subdirectories?

      would we need to add canonical tags, at lease for the main domain URLs? www.kornferry.com/page.html

      Thank you,

      Rachel

      1 Reply Last reply Reply Quote 0
      • Keszi
        Keszi last edited by

        Hi Rachel,

        Regarding the language code in the URL, you can leave it (page**-uk**.html,page**-es**.html, etc.), but maybe it would be an idea of having a translated page url for each language. For example:

        • domain.com/uk/example
        • domain.com/de/beispiel
        • domain.com/hu/pelda

        This would serve a little bit better than the previous version, where you would have:

        • domain.com/uk/example
        • domain.com/de/example
        • domain.com/hu/example
        1 Reply Last reply Reply Quote 0
        • R0bin_L0rd
          R0bin_L0rd last edited by

          Hi Rachel, I think István makes a good point about the translated urls but just as a quick follow-up to your original question - it should not cause technical problems to have the page names the same while they are in different directories, because the total file path should be different, as long as you have hreflang properly set up.

          Regarding your question about canonical tags - I would not canonicalise some of these language variants to other language variants, even if you do decide to make the page names the same. Hreflang is saying "these two pages are different language variants of the same thing" whereas canonical tags are saying "this page is just the same as this other thing" - the canonical tag doesn't have the language component so could conflict with your hreflang and cause errors with things like return tags. At the very least it could confuse Google as to which page should rank in which country, for instance, how can the /de/ page rank in Germany if we're telling Google it's not the canonical version of the page, but the other one from root is?

          Hope that helps!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • SEO URLs: 1\. URLs in my language (Greek, Greeklish or English)? 2\. Αt the end it is good to put -> .html? What is the best way to get great ranking?
            marioskal
            marioskal
            0
            7
            662

          • Use hreflang for language and regional URLs
            the-gate-films
            the-gate-films
            0
            4
            125

          • HTACESS Redirect Root Domain To Sub-Directory
            LynnPatchett
            LynnPatchett
            0
            3
            151

          • What is the best practice to seperate different locations and languages in an URL? At the moment the URL is www.abc.com/ch/de. Is there a better way to structure the URL from an SEO perspective?
            irvingw
            irvingw
            0
            2
            64

          • Doubt between sub-directory and sub-domain for develop Blog for my business website
            Perfect007
            Perfect007
            0
            4
            169

          • Hiding sub directory from a url string
            omega
            omega
            0
            5
            2.8k

          • Extra Sub Directory
            edwardlewis
            edwardlewis
            0
            4
            350

          • Multi- language URL best practices
            Paessler
            Paessler
            0
            5
            1.8k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy