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. Intermediate & Advanced SEO
    4. How do I go about changing a 302 redirect to a 301.

    How do I go about changing a 302 redirect to a 301.

    Intermediate & Advanced SEO
    3 2 2.7k
    • 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.
    • FrontlineMobility
      FrontlineMobility last edited by

      Hello Friends! Thanks for viewing my question. Ok,My question today is How do I go about redirecting a 302 link to a 301 link. I understand the benefits of doing this as far as link juice and how the Search Engines views the two Re-Directs. I am wanting to know where I would start to do this. Thank you in advance for any help or suggestions!

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

        How are you doing your 302 redirect?

        If it's htaccess, either just change 302 to 301 🙂

        So if it looks like this - redirect 302 /oldpage http://example.com/page - just change the number

        If it's applied by a rule add R=301

        RewriteRule ^oldpage(.*)$ /page [L,R=301]

        If it's php

        header("HTTP/1.1 301 Moved Permanently");
        header("Location: http://example.com/page");
        exit();
        ?>

        if it's asp

        <%
        response.Status = "301 Moved Permanently"
        response.addheader "location", "http://example.com/page"
        response.end
        %>

        Double check those though, end of the day here, getting tired 🙂

        FrontlineMobility 1 Reply Last reply Reply Quote 3
        • FrontlineMobility
          FrontlineMobility @StalkerB last edited by

          I was afraid it would be in the technical area instead of a magical button solving my problems. I'm not exactly sure how I am doing the redirect, however I do believe it is ASP so I will give it a try. Thanks for the Answer!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Going from 302 redirect to 301 redirect weeks after changing URL structure
            vcj
            vcj
            0
            2
            131

          • URL Structure Change - 301 Redirect - on large website
            Kurt_Steinbrueck
            Kurt_Steinbrueck
            0
            3
            2.1k

          • Language Detection redirect: 301 or 302?
            Marcus_Miller
            Marcus_Miller
            1
            4
            7.6k

          • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
            PatriotOutfitters81
            PatriotOutfitters81
            0
            3
            66

          • 301 Redirect To Another 301 Redirect
            cbielich
            cbielich
            0
            5
            247

          • How to conduct catch 301 redirects & have the separate 301 redirects for the key pages
            BenRWoodard
            BenRWoodard
            0
            2
            288

          • Rankings dropping after small URL-change WITH 301-redirect
            rmvw
            rmvw
            0
            3
            439

          • Explaining 301 redirects instead of 302
            ThompsonPaul
            ThompsonPaul
            0
            13
            1.0k

          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