Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Does having lots and lots of .htaccess rewrite rules slow down requests?

Options
  • 13-12-2008 12:33pm
    #1
    Closed Accounts Posts: 3,762 ✭✭✭


    I know this seems ridiculous, but I wondering if I have a load of rewrite rules in a .htaccess file, say about a hundred, does that slow down the requests hugely?

    I imagine it would, im just wondering if its true?


Comments

  • Registered Users Posts: 5,618 ✭✭✭Civilian_Target


    I believe it depends where you put them... R
    emember that htaccess works in a tree in apache, so if it's in an end-node of the tree it's probably not expensive at all, and if it's in the root node, it may be evaluated at every request.

    It would be neat if it did something like enumerate a map for rules at startup, in which case it would have a virtually non-existant performance drag... but I doubt it does :(


  • Registered Users Posts: 7,739 ✭✭✭mneylon


    Supposedly it impacts performance - how much however is another question


Advertisement