Add rewrite support to web subsystem