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.

  • You may ask this question on WordPress Stack Exchange. A meta filed with custom permalinks should be possible for attachments.
    – fuxia
    Apr 2 '12 at 14:14

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 tiny.cc, create a link to redirect to your myfile.pdf and then each time you update your file, you can have the very same tiny.cc link to redirect to your new file.

  • This is wrong. You can change permalinks for uploads, even for single ones, and you can replace existing files without changing the URL. WordPress does not create links based on the date, if you haven’t told it to do that.
    – fuxia
    Jan 14 '14 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.