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. I have 4,100 302 redirects; How can I change so many to 301s

    I have 4,100 302 redirects; How can I change so many to 301s

    Intermediate & Advanced SEO
    4 3 1.4k
    • 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.
    • freedomelectronics
      freedomelectronics last edited by

      hi, i have way to many 302 redirects, how can i bulk change these to 301

      i have started in cpanel but i could be old by the time i finsih

      1 Reply Last reply Reply Quote 1
      • Dan-Petrovic
        Dan-Petrovic last edited by

        Browse to your .htaccess file in WWW directory and open it in editor (if you're using cpanel) or download edit and upload via FTP (safer option). You can do a find and replace on the file like with anything else. If you are unsure of the syntax create a single 301 in cpanel and see how it looks like when you open up the file.

        Good luck!

        randfish 1 Reply Last reply Reply Quote 3
        • randfish
          randfish @Dan-Petrovic last edited by

          Dejan's solution is solid, but you may also want to try writing a redirect rule, using mod_rewrite for Apache (or ISAPI_rewrite in IIS). More info here - http://www.seomoz.org/learn-seo/redirection and here - http://www.seomoz.org/blog/url-rewrites-and-301-redirects-how-does-it-all-work

          Dan-Petrovic 1 Reply Last reply Reply Quote 2
          • Dan-Petrovic
            Dan-Petrovic @randfish last edited by

            Absolutely. In fact I realised that I missed the above after posting but my edit did not register. I hope my editing priviledges are not revoked. 😉

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • 302 > 302 > 301 Redirect Chain Issue & Advice
              Everett
              Everett
              0
              3
              583

            • If you do 302 redirect then change to 301 redirect do you lose all link juice?
              EricaMcGillivray
              EricaMcGillivray
              0
              3
              792

            • Any solutions for implementing 301s instead of 302 redirects in SharePoint 2010?
              GPainter
              GPainter
              0
              2
              787

            • 302 redirects in the sitemap?
              evolvingSEO
              evolvingSEO
              0
              3
              618

            • Can there be to many 301 redirects
              APICDA
              APICDA
              0
              6
              280

            • Request a 3rd party to change the URL to your site or 302 redirect it?
              NaescentAdam
              NaescentAdam
              0
              3
              266

            • 302 redirect
              joseph.chambers
              joseph.chambers
              0
              2
              487

            • How do I go about changing a 302 redirect to a 301.
              FrontlineMobility
              FrontlineMobility
              0
              3
              2.7k

            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