Add an option to rewrite the domain name in the URL of indexed documents.