regex - What tools, or techniques are available for managing large sets of rewrite rules for Apache? -
we have little on 450 rewrite rules in our apache config spanning 4 different files. can imagine, vital way our site operates.
we of course test rules add, have them in git, , ensure maintain correct ordering not step on each other's toes, growing set of rules due full-time development of product, it's number increase.
what tools, and/or techniques use maintain vital (and potentially dangerous) configuration? safeguards have ensure improperly designed rewrite rule doesn't accidentally take out large portions of site?
as facing problem, researched ways maintain large rulesets. in fact, there no real tool that. there might ways reduce / maintain rwrs.
- try using coherent url scheme, can translated program logic. this, can use routing controller 1 of symfony 2
- you might able condense set of rules using apache's rewritemap.
- use testng , xenus link sleuth on test stages find out whether rules still work. therefore, every rule has have it's own test.
- debug rules apache rewrite log.
- knock on wood.
Comments
Post a Comment