If your website is on the Business or Online Store plans on Avoori, you can access “Redirect Attachment Pages to Post Parent” setting by going to your website admin > SEO > Advanced.
Whenever you upload an image via the Media Library, a new attachment page is created to display that image. In most cases, it isn’t required or beneficial as it’s not adding any value and rather hindering the SEO process. So checking “Redirect attachment pages to post parent (or homepage if none)” option redirects those automatically created attachments pages to the post parent or page.
Let’s suppose if the page or post has been deleted or is moved to trash, then checking this option will then redirect it to the homepage.