Solution:
You could try to use a plugin to do this.
https://wordpress.org/plugins/hide-real-download-path/