How to handle expired assets/content when user has direct URL
Are these pdfs all in a sub-directory somewhere? You could add an .htaccess file to your sub-directory root then put this as the top line. ErrorDocument 404 /path/to/your404page This would make it easier to manage and keep it separate from your main htaccess file.