allow string or array for rewrite rules