No, I hoped, that ez would take care of it in the docs... but I don't see any info on the rewrite rules in the docs at all.
Now, from http://ez.no/developer/ez_publish_3/documentation/configuration/configuration/tips_tricks/exclude_uris_from_rewrite, I'd guess something like