PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. 301
  4. Attachment Pages Redirect
Attachment Pages Redirect icon

Attachment Pages Redirect

Redirect attachment pages or return a 404 error for them based on the parent post status.

By Samuel Aguilera·301·Free
4.9(47 reviews)
·20K+ active installs·Updated 2 months ago
DownloadCompare

As of April 2026, Attachment Pages Redirect is a WordPress 301 plugin with 20K+ active installations and a 4.9/5 rating from 47 reviews. It has been downloaded 181K+ times in total. Requires WordPress 4.8+ and PHP 5.6+. Available on WordPress.org since 2012. Recently updated within the last 3 months. Downloads are down 19% this week. Top alternative: Redirection.

4.9/547 reviews
20K+active installs
181K+total downloads
14 yearssince 2012

Overview

There are three possible scenarios where this plugin does something. In all cases, the attachment page must exists, the plugin will not run for deleted attachments:

A) A visitor lands on an attachment page and the parent post is available (not in trash or deleted). A 301 redirect will be issued to redirect the visitor to the parent post.

B) A visitor lands on an attachment page and the parent post was already deleted from trash. A 302 redirect is issued to home page (this can be changed to 301 if you want, see FAQ for more details).

C) A visitor lands on an attachment page and the parent post is in trash, therefore not available for the visitor. It returns a 404 error code to prevent endless redirection loop in old WP releases and redirecting to trashed/not available posts.

There is no op…

Read full description on WordPress.org

Ratings & Reviews

4.947 reviews
5 ★
45
4 ★
1
3 ★
0
2 ★
0
1 ★
1

Recent Reviews

Great!
by sailboats25·1 year ago

This plugin has been such a big help for my website. Before, people clicking an image they found in Google Images would be taken to the image’s attachment page with no other context. Now they are taken to the page we want them to go to, leading to better engagement with our site.

Perfect
by robegb·2 years ago

Exactly what I needed. Thanks!

Works immediately
by Joey·3 years ago

I didn’t want any attachment pages to be accessed by visitors, then found this plugin that does the job by just installing and activating. Thanks!

Sorry this is not working anymore
by metaeditor·3 years ago·1 reply

Plugin is not working anymore

The Best only.
by dikasparaandroid·4 years ago

thanks man. You save a bigger work here. Thanks for this.

Download Trends

Today: 13Yesterday: 10This week: 95Period total: 6K

Compatibility

WordPress4.8+ requiredTested up to 6.9.4
PHP5.6+ required

Version Adoption

v1.1
97.6%
v1.0
2.4%

Top Alternatives to Attachment Pages Redirect

Redirection icon
Redirection
4.42.0M+ installsUpdated 1 month ago
ViewCompare
Redirection icon
Redirection
5100K+ installsUpdated 4 weeks ago
ViewCompare
Quick Page/Post Redirect Plugin icon
Quick Page/Post Redirect Plugin
4.470K+ installsUpdated 2 years ago
ViewCompare
WP 404 Auto Redirect to Similar Post icon
WP 404 Auto Redirect to Similar Post
4.930K+ installsUpdated 4 months ago
ViewCompare
Simple Page Redirect icon
Simple Page Redirect
510K+ installsUpdated 2 months ago
ViewCompare
View all 301 plugins →

Frequently Asked Questions

Changelog

1.1.2

  • Changed code for 404 scenario to use the theme’s 404 template if it’s available.
View full changelog on WordPress.org

Contributors

Samuel AguileraSamuel Aguilera
Plugin Info
Version
1.1.2
Last Updated
Jan 16, 2026
WP Requires
4.8+
Tested Up To
6.9.4
PHP Requires
5.6+
Active Installs
20K+
Downloads
181K+
Added
May 16, 2012
Business
Free

Tags

301302imagesredirectattachment

Developer

S
Samuel Aguilera
14 plugins0.1M+ total installs
View all plugins →

Quick Compare

Attachment Pages Redirect vs Redirection→Attachment Pages Redirect vs Redirection→Attachment Pages Redirect vs Quick Page/Post Redirect Plugin→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.