.htaccess pdf file redirect

Description

I recently added my resume to my site and needed to make the permalink wordpress makes get redirected to my resume ‘resume.pdf’

Solution

Open the .htaccess file in your web folder and add the following code.
[bash]
RewriteEngine On
Redirect /about/resume-pdf/ /resume.pdf
[/bash]

That’s all, and now you can redirect wordpress permalinks to the proper file.

Leave a Reply

Your email address will not be published. Required fields are marked *