Redirect attachment pages or return a 404 error for them based on the parent post status.
We use cookies to recognize you, to personalize your experience, to show you relevant adverts, to measure the effectiveness of our campaigns and to analyze traffic and website usage patterns. Read our cookie policy.