add rewriteurl for pdf and public keys