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. .htacces measure

    .htacces measure

    On-Page / Site Optimization
    5 2 98
    • 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.
    • JoostBruining
      JoostBruining last edited by

      Hi, what is a reasonable measure of an .htacces? i have a lot of 301 redirects and wonder when will this turn against me because there are to much 301 redirects?

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

        .htaccess file is evaluated on EVERY server request. So you are talking when it pulls images, CSS, JSS and all elements, the htaccess gets evaluated. ie when you have more than 400 lines in a htaccess file. the server will go through all of them to reply to the request. hence make your site load speed slow.

        So you have two options when your htaccess file goes big:

        • Make it Smart: you can use rewrite rules and wildcards to minimize 300 lines in a htaccess file to just couple of lines
        • move the redirects to be controlled by http.conf on the server level with rewrite map. (reference: http://httpd.apache.org/docs/current/rewrite/rewritemap.html)

        hope this helps

        JoostBruining 1 Reply Last reply Reply Quote 1
        • JoostBruining
          JoostBruining @wissamdandan last edited by

          Thanx for the answer but what is a reasonable measure of an .htacces? do know that?

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

            there is no documented number that is considered as a flag. but i keep my htaccess less than 200 lines

            JoostBruining 1 Reply Last reply Reply Quote 1
            • JoostBruining
              JoostBruining @wissamdandan last edited by

              okay i try to keep it under 100 lines and was wondering is this to much.. i know to little from apache rewritemap and looking for a dutch translation of the link you send me. so i can try that.

              Thanx again!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Facing issue related to my website.
                BartonInteractive
                BartonInteractive
                0
                2
                22

              • Will including "Contact Me" form degrade Google page ranking?
                BartonInteractive
                BartonInteractive
                0
                2
                16

              • High domain authority not showing up in results
                BartonInteractive
                BartonInteractive
                0
                6
                29

              • Homepage SEO optimization
                Aheue87
                Aheue87
                0
                8
                208

              • Star snippet not work
                drmehrdad
                drmehrdad
                1
                65
                714

              • Google search returns blog homepage, but not article
                STP_SEO
                STP_SEO
                0
                11
                305

              • How to measure form abandonment
                Nightwing
                Nightwing
                0
                5
                189

              • Too Many On-Page Links
                Oiueu4
                Oiueu4
                0
                3
                902

              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