https://hamyarwp.com/redirect-post-attachments/