1. Home
  2. Knowledge Base
  3. SEO Suite
  4. Should You Redirect Attachment Page URLs?

Should You Redirect Attachment Page URLs?

Are you aware of the fact that whenever you upload a file to the WordPress Media Library, WordPress creates a separate media attachment page for every individual file? This page has its own automatically generated URL and comprises only the media content. Most of the time, this page is not very useful, and hence you might want to redirect WordPress attachment pages to the original post or the page that the file was attached to.

In this knowledgebase article, we’ll discuss whether you should enable the Redirects Attachments Option.

Why You Should Redirect the WordPress Attachment Pages?

If you choose not to redirect the WordPress attachment pages, then it will have a bad impact on SEO. For example, if you create a post with two images in it. Then WordPress will automatically create three URLs, two for the images and one for the original post. This ultimately hurts your SEO in more than one way, including but not limited to:

  • Google might bring in the much-needed traffic to the attachment pages instead of the original post. This is something that you would definitely want to avoid similar to 404 errors.
  • The audience that lands upon the image or the attachment page tends to move away from it which thereby increases the bounce rate.
  • It is also possible that Google might index all your image files and consider them to be duplicate content.
  • There could be instances where media added to a restricted page could be indexed on search engines with their attachment URLs. In this case, any unverified user might get access to the media of the page by simply clicking through the URL in the search result without the password.

How to Redirect Attachments with Rank Math?

You can help your audience skip these attachment pages by redirecting them to the post or page that they belong to with the help of Rank Math.

In Rank Math, you can find the Redirects Attachment option in Rank Math > General Settings > Links.

Redirects Attachments

Enable the Redirect Attachments option and then click the Save Changes button at the bottom of the page. Now you can check the attachment pages if it is being redirected to the post or page where they belong to. You can also redirect your attachment pages directly to the media URLs by following this tutorial.

And, that’s it. We hope the tutorial was helpful in redirecting attachments. If you still have absolutely any questions, please feel free to reach our support team directly from here, and we’re always here to help.

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Know more about the PRO Version

Was this article helpful?

Still need help?


Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles