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. Using a 302 redirect for language variants. How should I use the canonical?

    Using a 302 redirect for language variants. How should I use the canonical?

    Technical SEO Issues
    4 2 50
    • 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.
    • zuriwolf
      zuriwolf last edited by

      Hi there,

      I have a question regarding the canonical tag. The current setup is like so...

      www.site.com

      302 redirects to..

      www.site.com/de/

      I want to add canonical tags on every page to avoid duplicate content but I'm not sure about the homepage. Should the canonical URL be

      www.site.com

      or

      www.site.com/de/

      ? I'm concerned that I could be about to hurt my ranking.

      Thanks,
      Mitch

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

        Hello,

        With that language i assume you've got a few languages on your site so it boils down to are the two urls sharing the same content? If they are in two different languages I wouldn't say this counts. Worst case here I'd even look at leaving the canonical and setting up some decent schema to tell search engines its targeted at somewhere else or to someone else (language).

        So do www.site.com and www.site.com/de/ share the same content ?

        zuriwolf 1 Reply Last reply Reply Quote 0
        • zuriwolf
          zuriwolf @GPainter last edited by

          Actually there are only 2 languages, English and German. Both live on a sub holder so nothing is in the root.

          That's correct, www.site.com and www.site.com/de/ share the same content, both German. Although the / redirects to the /de/ with a 302.

          What sort of schema did you have in mind?

          I'm considering move the homepage content to the root (without /de/) and leaving internal pages at the /de/ level. Do you think that's a good/bad idea?

          GPainter 1 Reply Last reply Reply Quote 0
          • GPainter
            GPainter @zuriwolf last edited by

            Hello,

            okay so if you were going to set a canonical I'd set it on DE as you're redirecting the traffic to that page anyway. The schema You can declare the language and to a degree target country using markup which can aid in understanding of your site with search engines etc.

            Sorry just saw the edit, yes i can image structuring your site that way will do the job too and avoid the whole issue.

            Hope that helps. Seems like you some what resolved it your self 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Hi, we are wanting to test a new version of one particular page on our website. What's the best way to run a test for a week without harming rankings. Do we use a 302 redirect or direct 100% of traffic using a tool like Optimizely?
              WebElaine
              WebElaine
              0
              2
              33

            • As a beginner in SEO, how do I do 302 redirects/ rel="canonicals"
              TimHolmes
              TimHolmes
              0
              5
              71

            • Is this a correct use of 302 redirects?
              Marcus_Miller
              Marcus_Miller
              0
              3
              92

            • 301 redirect: canonical or non canonical?
              David-Kley
              David-Kley
              0
              5
              466

            • Redirects on multi language site and language detection
              Andy.Drinkwater
              Andy.Drinkwater
              1
              4
              2.8k

            • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
              Unity
              Unity
              0
              2
              317

            • Rel=Canonical on a page with 302 redirection existing
              sjcbayona-41218
              sjcbayona-41218
              0
              7
              2.3k

            • What should be use 301 or 302 redirection for 404 pages
              My-Favourite-Holiday-Cottages
              My-Favourite-Holiday-Cottages
              0
              3
              1.5k

            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