Permanent link to media library files?

If I upload a .pdf file to the media library it gets a link like:

Is it possible to make a permanent link to it (e.g. the link will not change if I replace myfile.pdf with a new version next month or later)?


or just

would be fine.

1 Answer

It is not possible, you are changing the file, the link has to change.

WordPress creates link based on the date of upload of the file.

What you can do is: use a url-shortner service such as, create a link to redirect to your myfile.pdf and then each time you update your file, you can have the very same link to redirect to your new file.

Leave a Comment