.htaccess pdf file redirect


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


Open the .htaccess file in your web folder and add the following code.

RewriteEngine On
Redirect /about/resume-pdf/ /resume.pdf

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

Comments are closed.