added a rewriteUnresolved option to allow rewriting unresolved paths to a single url.