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. 302 Redirect Question

    302 Redirect Question

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

      After running a site crawl. I found two 302 redirects.

      The two redirects go from:

      site.com to www.site.com

      &

      site.com/products to www.site.com/products

      How do I fix the 302 redirect and change it to a 301 redirect? I have no clue where to start.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • Roman-Delcarmen
        Roman-Delcarmen last edited by

        just my opinion, I think is better that you add the both properties on Search Console first ( www.site.com and site.com) and set the right property

        Exmaple you can set www.site.com as your main site

        On the other hands you need to edit your http access file

        <code>add this code to .htaccess file:
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]</code> 
        
        Ryan_132 1 Reply Last reply Reply Quote 3
        • Ryan_132
          Ryan_132 @Roman-Delcarmen last edited by

          Thanks for the reply.

          So this will fix the 302 redirect that Moz is showing?

          Or is it simply an alternative method?

          Roman-Delcarmen 1 Reply Last reply Reply Quote 0
          • Roman-Delcarmen
            Roman-Delcarmen @Ryan_132 last edited by

            This will fix  the 302 redirect that Moz is showing and will change those redirects from 302 to 301

            1 Reply Last reply Reply Quote 3
            • 1 / 1
            • First post
              Last post
            • One more redirect question
              WhoWuddaThunk
              WhoWuddaThunk
              0
              3
              88

            • What to do with 302 redirects being indexed
              Marcus_Miller
              Marcus_Miller
              0
              4
              403

            • Questions about Redirects
              csmm
              csmm
              0
              4
              345

            • 301 redirect or 302
              RuudHeijnen
              RuudHeijnen
              0
              3
              601

            • Redirect Question
              KeriMorgret
              KeriMorgret
              1
              5
              322

            • Redirect question
              RobertFisher
              RobertFisher
              0
              6
              513

            • Do search engines treat 307 redirects differently from 302 redirects?
              CarsProduction
              CarsProduction
              0
              3
              710

            • Is a 302 redirect the correct redirect from a root URL to a detail page?
              KeriMorgret
              KeriMorgret
              0
              7
              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