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 to 301

    302 to 301

    Technical SEO Issues
    8 4 400
    • 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.
    • OTSEO
      OTSEO last edited by

      Hello,

      We have a temporary redirect (302?) from http url to https url. Seomoz has suggested that we change the 302 temporary redirect to a permanent 301 redirect.

      Sounds good.... but how do we do that?!

      Appreciate any and all feedback!

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

        Hello,

        Its pretty simple by replacing 302 to 301, as you already have 302 redirect from HTTP to HTTPS. If you have done it with .htaccess just edit the file and just replace 302 with 301.

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

          May I know which platform are you using ? And how you have done 302 redirect ?

          If you have done it through httaccess file then KLLC is right, just replace 301 in place of 302.

          OTSEO 1 Reply Last reply Reply Quote 0
          • OTSEO
            OTSEO @SanketPatel last edited by

            Hi Guys,

            Thanks for the reply. Actually, the original site developer made the 302 redirect. I found the httaccess file, but I can't see how to change the 302. I found several instances in the file where 301 is mentioned, but so far I can't find a reference to 302. Any idea what I should be looking for?

            SanketPatel OTSEO 3 Replies Last reply Reply Quote 0
            • SanketPatel
              SanketPatel @OTSEO last edited by

              It should be on root folder or in "public html" folder.

              1 Reply Last reply Reply Quote 0
              • OTSEO
                OTSEO @OTSEO last edited by

                I found the .htaccess file. Inside I can find several places where there is a redirect to use WWW., or not. But I can't find the place where it says redirect http to https. What sort of text might it say?

                Thanks!

                1 Reply Last reply Reply Quote 0
                • SanketPatel
                  SanketPatel @OTSEO last edited by

                  Can you PM me your httaccess code ? And your website URL ?

                  1 Reply Last reply Reply Quote 0
                  • Cyrus-Shepard
                    Cyrus-Shepard last edited by

                    Coming in late on this thread. There's actually muliple ways to redirect from http to https, depending on your server configuration and so on. It's very possible your developer did set this up in the .htaccess file. If a 301 isn't defined (or none is defined) I believe it can default to a 302.

                    I see Sanket has volunteered his help. Yay! Let us know what you find or if you need any help.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Redirecting 301 or 302?
                      HypermediaSystems
                      HypermediaSystems
                      0
                      5
                      223

                    • Redirect 302 status code to 301 status code
                      rijwielcashencarry040
                      rijwielcashencarry040
                      0
                      5
                      145

                    • 301 and 302 for same link
                      MichaelEka
                      MichaelEka
                      0
                      8
                      157

                    • Instead of a 301, my client uses a 302 to custom 404
                      Travis_Bailey
                      Travis_Bailey
                      0
                      6
                      157

                    • 301 vs 302 & Link Juice
                      MickEdwards
                      MickEdwards
                      0
                      4
                      311

                    • 302 to 301 redirect confirmation
                      jez000
                      jez000
                      0
                      4
                      330

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

                    • 302 or 301 redirect to https ?
                      Kotkov
                      Kotkov
                      0
                      9
                      33.6k

                    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