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. What are the best strategies to organize a htaccess full of 301 re-directs

    What are the best strategies to organize a htaccess full of 301 re-directs

    Intermediate & Advanced SEO
    3 3 1.2k
    • 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.
    • anchorwave
      anchorwave last edited by

      I have a client with a htaccess file that is a total mess!

      What are the best practices to organize all the re-directs, and make it more manageable in the future.

      Any resources would be appreciated.

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

        We have a site that is categorized by folder so we place separate .htaccess files in each folder... that keeps them relatively small instead of placing all of redirects in the root.

        1 Reply Last reply Reply Quote 0
        • joseph.chambers
          joseph.chambers last edited by

          Do you have root access to the server? If you do then a rewrite map is a lot faster then a bunch of rewrite rules & conditions.

          http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritemap

          You can always just add comments with the hash tag: # what each thing does and group them. That would be cleaner.

          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post
          • Best SEO Strategy
            Roman-Delcarmen
            Roman-Delcarmen
            0
            6
            151

          • Is it bad I have a cluster of canonical urls that 301 re-direct?
            lunavista-comm
            lunavista-comm
            0
            4
            98

          • Is it OK to Delete a Page and Move Content to a Another Page without 301 re-direct
            Locutus
            Locutus
            0
            5
            152

          • If you remove a 301-re-direct, will there be a corresponding drop in traffic?
            BrightHealth
            BrightHealth
            0
            5
            104

          • 301 Redirect htaccess
            Christy-Correll
            Christy-Correll
            0
            8
            256

          • 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

          • Best way to handle old re-directs?
            iPullRank
            iPullRank
            0
            2
            489

          • Best strategy behind moving country subdirectory to dedicated TTLD wo/ loosing organic search volume?
            tomypro
            tomypro
            0
            5
            834

          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