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. On-Page / Site Optimization
    4. 301 Redirects - Large .htaccess file question

    301 Redirects - Large .htaccess file question

    On-Page / Site Optimization
    3 2 85
    • 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.
    • leadforms
      leadforms last edited by

      We are moving about 5000 pages from root into different folders. We need to individually 301 each page because the are sitting at root level now:

      mysite.com/page.com

      We want to move them to: mysite.com/folder/page.html etc

      I dont think redirect match can works because of the different files names and folders they are being moved in to.

      Will 5000 entries in .htacess slow site loading? Any other suggestions how to handle?

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

        Hi Leadforms,

        Interesting question.

        Having lots of redirects will slow down your site.

        There are different ways to implement your redirects other than .htaccess but I believe this would be the best method for you.

        Is there any way you can group some of the redirects? maybe part of the URL is the same for all the pages you want to send to a certain folder then the match may work?

        If not then I think you have a massive job on to redirect 5k pages and manage the redirects afterwards as well.

        I would look at the pages and judge the value of a redirect on that page. If the page has no external links pointing to it and it has a low PA then do you need to redirect it?

        You also need to keep in mind a few other things:

        1. You need to make sure that the page you are redirecting to and from are similar in a boolean context - that is that a machine will see them as the same content and not just a person

        2. you need to avoid redirect chains - that is a redirect to a redirect and so on

        3. If you have redirects in place at the moment from HTTP to https you need to redirect these separately otherwise you will generate a chain

        4. I would amend all your internal links rather than relying on the redirect otherwise again you will create a chain

        Once you have implemented the redirects you will need to monitor them to see how much traffic they are generating, if after a few months a redirect is generating no traffic and all the traffic is going to the new URL then you will need to consider the benefit of keeping that redirect in place or removing it to improve site load times.

        I hope this helps,

        Steve

        MrWhippy 1 Reply Last reply Reply Quote 1
        • MrWhippy
          MrWhippy @MrWhippy last edited by

          Sorry I meant to add some links that might be useful.

          here they are

          https://moz.com/community/q/will-301-redirects-slow-page-speed

          https://moz.com/blog/heres-how-to-keep-301-redirects-from-ruining-your-seo

          https://moz.com/community/q/massive-301-permanant-redirects This is an older question on here but may have some useful insights.

          https://webmasters.stackexchange.com/questions/113246/does-too-many-301-redirects-harm-serp-rankings

          http://www.thesempost.com/best-practices-for-301s-in-large-htaccess-file/

          https://www.impactbnd.com/blog/301-redirect-lessons

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • We recently updated a large guide that takes the place of the original. The original has some nice organic traffic to it and I don't want to risk losing it. Should I 301 redirect to the new version, or update all the info directly on the original page?
            Zohaibkhannn
            Zohaibkhannn
            1
            4
            42

          • .htaccess redirect chains
            ztalk112
            ztalk112
            0
            4
            458

          • To redirect or not to redirect...That is the question
            EGOL
            EGOL
            0
            3
            189

          • Problemas with my htaccess file
            juanmiguelcr
            juanmiguelcr
            0
            7
            138

          • How to do this 301 redirection
            AndieF
            AndieF
            0
            3
            111

          • Is it redundant to include a redirect to my canonical domain (www) in my .htaccess file since I already have the correct rel="canonical" in my header?
            jesse-landry
            jesse-landry
            0
            4
            224

          • Redoing a site - 404 redirect or 301 redirect
            danatanseo
            danatanseo
            0
            3
            536

          • 301 redirect -
            aidanlawlor
            aidanlawlor
            0
            4
            324

          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