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. Search Engine Trends
    4. Long term plan for a large htaccess file with 301 redirects

    Long term plan for a large htaccess file with 301 redirects

    Search Engine Trends
    2 2 1.3k
    • 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.
    • gavinhoman
      gavinhoman last edited by

      We setup a pretty large htaccess file in February for a site that involved over 2,000 lines of 301 redirects from old product url's to new ones.

      The 'old urls' still get a lot of traffic from product review sites and other pretty good sites which we can't change.

      We are now trying to reduce the page load times and we're ticking all of the boxes apart from the size of the htaccess file which seems to be causing a considerable hang on load times. The file is currently 410kb big!

      My question is, what should I do in terms of a long terms strategy and has anyone came across a similar problem?

      At the moment I am inclined to now remove the 2,000 lines of individual redirects and put in a 'catch all' whereby anything from the old site will go to the new site homepage.

      Example code:

      RedirectMatch 301 /acatalog/Manbi_Womens_Ear_Muffs.html /manbi-ear-muffs.html
      RedirectMatch 301 /acatalog/Manbi_Wrist_Guards.html /manbi-wrist-guards.html

      There is no consistency between the old urls and the new ones apart from they all sit in the subfolder /acatalog/

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

        When I faced a situation with several hundred pages, I decided to to only list the most important ones.  I determined the important ones by there presence in Google and the import of the page content.

        I first Googled "site:www.example.com" to get a good idea of what was indexed.

        I used Analytics to see if any pages were entry pages.  If a page gets no hits as an entry page, the 301 redirect is never needed.

        I made a list of about 100 redirects, then made the 404 error page a slight variation of my homepage.

        Now if you have any pages that have links in, you will need to maintain those redirects.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Redirecting acquired website: DNS or 301?
          ThompsonPaul
          ThompsonPaul
          0
          4
          563

        • Link reclamation and many 301 redirect to one URL
          seanginnaw
          seanginnaw
          0
          4
          292

        • 301 redirect to URL plus anchor tag???
          evolvingSEO
          evolvingSEO
          0
          3
          4.1k

        • Redirecting Blog WITHOUT .htaccess
          MoosaHemani
          MoosaHemani
          0
          3
          183

        • 301 Redirects
          Christy-Correll
          Christy-Correll
          0
          11
          218

        • Where can I find the htaccess file in the Wordpress yoast plugin?
          GoodAtMarketing
          GoodAtMarketing
          0
          3
          1.4k

        • Is it OK to 301 redirect the index page to a search engine friendly url
          Marcus_Miller
          Marcus_Miller
          0
          5
          334

        • Redirected old domain to new, how long before seeing the external links under the new domain?
          KeriMorgret
          KeriMorgret
          0
          3
          520

        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