Rewrite module for xweb