1

I have a website where I want the permalink to my resume to be www.example.com/resume, so that whenever I send someone that link, it goes to the most recent version of my resume. But I don't want my resume to be a webpage -- I just want the permalink to send people to a PDF file, say http://www.example.com/wp-content/uploads/2021/07/Resume-v4.pdf. This way people with the www.xyz.com/resume link always see the most recent version, regardless of when I sent it.

If possible, I'd also like to be able to redirect people who have the link http://www.example.com/wp-content/uploads/2021/07/Resume-v4.pdf to be redirected to www.xyz.com/resume, and then sent to the newest version of the file.

I've tried using a few plugins for this, but nothing seems to be able to generate permalinks for media files. Does anyone know how to do this?

1 Answer 1

1

You can accomplish the first part using the Quick Page/Post Redirect Plugin. Just set the Request URL to /resume and the Destination URL to /wp-content/uploads/2021/07/Resume-v4.pdf

For the second part of your question, you can add a redirect rule to your .htaccess file:

Redirect /wp-content/uploads/2021/07/Resume-old.pdf /resume

The way you worded your question you actually would set up an infinite redirect, so I changed it here to "Resume-old.pdf".

1
  • Thanks! This worked perfectly.
    – Catlard
    Commented Jul 31, 2021 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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