add rewrites for web apps