Mod rewrite...is it a burden on webservers?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CS-Jay
    Confirmed User
    • Oct 2003
    • 1794

    #1

    Mod rewrite...is it a burden on webservers?

    I have heard that mod rewrite is a burden on webservers from a few people, just wanted to see if anyone thinks so or not. I understand it's a extra step in loading a page, which sometimes requires a db call or parsing a page to see what the vars are.

    Your thoughts...
    I do stuff - aIm CS_Jay_D
  • Remastered
    Confirmed User
    • Mar 2006
    • 182

    #2
    Apparently so, it depends on the load and number of rules it has to compare.

    Reading .htaccess in each directory also puts more load, so it's best to put it in httpd.conf

    Comment

    • CS-Jay
      Confirmed User
      • Oct 2003
      • 1794

      #3
      Now, that's a good idea. I'm thinking of doing just the basic kind of type=xxxx to do domain.com/xxx/ kind of thing. But, that's what I heard was the dir. .httaccess was more of a load.
      I do stuff - aIm CS_Jay_D

      Comment

      • RawAlex
        So Fucking Banned
        • Oct 2003
        • 9465

        #4
        An extra step is an extra step. Now, if you are running a ton of rules (say to block hotlinkers or limit access by scoop-bots) you might find your server getting bogged down a little. Check your server activity, watch the usage, and see what is going on. Test your web page download speed with and without the rules in there, and you will know the answer.

        Alex

        Comment

        • Mike Seth
          Registered User
          • Feb 2006
          • 88

          #5
          Not to my experience, it is not. Of course I am assuming that you aren't running 50 or so rewrite conditions & rules. In my case, there are often a dozen or two rules, and I don't feel it impedes performance in any [significant] way
          Mike Seth - 274-570-412 <mikeseth at gmail.com>

          Comment

          • s9ann0
            Confirmed User
            • Sep 2001
            • 4873

            #6
            I think if you keep the rules brief and write it into the webserver config not in .htaccess its pretty good

            I run about 30 rules+ on freehosting machines without any noticeable effect on load

            Comment

            • Wiggles
              Too lazy to set a custom title
              • May 2004
              • 14423

              #7
              hmm interesting, never really considered the load effect of it. was planning for an upcoming project to do some intensive mod rewrites.
              no sig

              Comment

              • fetishblog
                Confirmed User
                • Sep 2005
                • 5995

                #8
                It's only a burden on the server if you are running a server with high traffic on a 386.

                Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!

                Comment

                Working...