remove attachment path rewriting