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 long should I keep the 301 redirect file

    How long should I keep the 301 redirect file

    Intermediate & Advanced SEO
    9 5 322
    • 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.
    • KBC
      KBC last edited by

      We've setup an new site and many pages don't exist anymore (clean up done). But for many of them we have new pages with new url's. We've monitored the 404 and have now many URL's redirected with 301 (apache file).

      How long should we keep this in place? Checking all links manually to see of new url is in place of the old url (in google) is too much work.

      tx!

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

        Hi KBC,

        there I dont see that the follow up on the URL update on SERPs should be a problem. Have you tried using 'site:yoursite.com' query?

        About the 301 redirect, I wuold keep it as many time as possible. There will be no harm at all when all URL are updated.

        Hope this helps you. 🙂

        KBC 1 Reply Last reply Reply Quote 1
        • KBC
          KBC @GastonRiera last edited by

          Can one have to many 301's? Can list be too long?

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

            My 301s will still be up when I attend my own funeral.

            I am old enough that the web will still exist, but for you maybe not.

            I need to add an item to my business succession plan about 301s.  Thanks for the reminder.

            1 Reply Last reply Reply Quote 4
            • EGOL
              EGOL @KBC last edited by

              Some people place all of their 301 in the root .htaccess folder.   I think that is a bad idea.

              Mine are in subfolders, as deep within them as possible.  I believe that reduces work on the server.

              GastonRiera KBC Mobilio 3 Replies Last reply Reply Quote 0
              • GastonRiera
                GastonRiera @EGOL last edited by

                Im with you EGOL.
                Keep the redirect files as deep as possible.

                And no, there's no limit on the quantity of 301's

                1 Reply Last reply Reply Quote 1
                • KBC
                  KBC @EGOL last edited by

                  Not possible here, since the structure changed for 100% 🙂

                  1 Reply Last reply Reply Quote 0
                  • Mobilio
                    Mobilio @EGOL last edited by

                    This is also bad idea.

                    .htaccess have parameter with enable or disable subdirectory .htaccess override - AllowOverride. And this can kill all Apache performance! Why?

                    Let you browse /index.html Apache will parse .htaccess, execute rules and return /index.html. This is normal case scenario - with one .htaccess. But if you browse /subdir1/subdir2/subdir3/subdir4/subdir5/blah.jpg this is BAD! Apache will parse /.htaccess then /subdir1/.htaccess then /subdir1/subdir2/.htaccess .... subdir1/subdir2/subdir3/subdir4/subdir5/.htaccess and then blah.jpg.

                    Remember! Apache doesn't cache .htaccess. They're loading, parsing and executing on each resource loaded. And when you access 2nd resource - they make this over and over.

                    It's much better if you make static configuration in httpd.conf because this configuration is loading on startup only and there you can define <site><directory><resource>for each of them.</resource></directory></site>

                    Other modern webservers also used static config - nginx, lighttpd, etc.

                    1 Reply Last reply Reply Quote 1
                    • 4RS_John
                      4RS_John last edited by

                      Unless there's a reason to take the 301s down, don't.

                      If you don't want to have to wade through them all when you're editing your .htaccess file you could monitor your server logs which should show all requests & responses your server receives & sends. When no requests for a URL, (and therefor no 301 responses happen), come in for some long period of time, (a month? 6 months? a year?), then you may be able to safely remove the 301 directive from your .htacess, (or wherever you configure your 301s).

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Hacked website - Dealing with 301 redirects and a large .htaccess file
                        ChrisAshton
                        ChrisAshton
                        0
                        6
                        374

                      • Switching from HTTP to HTTPS: 301 redirect or keep both & rel canonical?
                        Steven_Macdonald
                        Steven_Macdonald
                        0
                        9
                        3.1k

                      • Handling Multiple Domain 301 Redirects on Single htaccess file
                        Andy.Drinkwater
                        Andy.Drinkwater
                        0
                        2
                        291

                      • 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

                      • How long for a 301 redirect to pass PR?
                        benjaminspak
                        benjaminspak
                        0
                        3
                        372

                      • How long do 301 redirects have to stay in place?
                        ShaMenz
                        ShaMenz
                        0
                        4
                        1.0k

                      • Why isnt my crawl results showing a 301 redirect even though I have a 301 rewrite in my .htaccess file?
                        PCTechGuy2012
                        PCTechGuy2012
                        0
                        8
                        462

                      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