Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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

  • 13-12-2008 11:33AM
    #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, Registered Users 2 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, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    Supposedly it impacts performance - how much however is another question


Advertisement