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
            • Can't support IE 7,8,9, 10\. Can we redirect them to another page that's optimized for those browsers so that we can have our site work on modern browers while still providing a destination of IE browsers?
              0
              1
              18

            • All URLs in the site is 302 redirected to itself
              zeehj
              zeehj
              0
              3
              148

            • Going from 302 redirect to 301 redirect weeks after changing URL structure
              vcj
              vcj
              0
              2
              131

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

            • Too many 301 redirects?
              Everett
              Everett
              0
              9
              8.1k

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

            • Can changing dynamic url of over 2000 pages site after a year will change its ranking
              KevinBudzynski
              KevinBudzynski
              0
              3
              388

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

            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