add ews mod_rewrite code