Attachment page handlingNov 28, 2026By PluginTrio Editorial

WordPress attachment page plugins: Attachment Pages Redirect vs Disable Attachment Pages vs Smart Attachment Page Remove

Compare Attachment Pages Redirect, Disable Attachment Pages and Smart Attachment Page Remove for parent redirects, 404 or 410 responses and WordPress defaults.

Image relief cards beside branching paths leading to an article sculpture and closed arch

An image upload and an image attachment page are different destinations. The first is the actual media file; the second is a WordPress-generated HTML page associated with that file. On some sites the HTML page adds little context, yet old links still lead visitors there. Choosing a response requires more thought than switching on a general redirect plugin.

Attachment Pages Redirect, Disable Attachment Pages and Smart Attachment Page Remove offer three focused ways to handle those URLs. Two favor a parent-page destination, while the third returns a missing or removed response. Official descriptions, WordPress core guidance and available release metadata were checked on November 28, 2026. We have not run a crawl experiment or measured any search-ranking effect.

Check whether WordPress already does enough

WordPress changed attachment-page defaults in version 6.4. New installations have those pages disabled and redirect their URLs to the media file. Existing installations retain the enabled setting when upgrading. The relevant option is wp_attachment_pages_enabled, so the version installed today does not by itself tell you which behavior your site has.

If a direct file destination is exactly what you want, core behavior on a new installation may already meet the requirement. These plugins become relevant when an older site still exposes HTML attachment pages, when visitors should reach the parent article, or when the URL should explicitly return an error response. None of those choices means deleting the media file.

Plugin Documented response Best fit Main qualification
Attachment Pages Redirect Parent 301; specified orphan 302; trashed-parent 404 Simple status-dependent routing Needs an existing attachment; not a deleted-file repair tool
Disable Attachment Pages Parent 301; no-parent home 302 Parent-oriented routing on old and new sites Current major release requires PHP 8.0
Smart Attachment Page Remove 404 by default; optional 410 Removing HTML attachment destinations No redirect to a replacement article

Attachment Pages Redirect

Attachment Pages Redirect, by Samuel Aguilera, documents different outcomes according to the parent post. An available parent receives a permanent 301 redirect. If the parent has been permanently deleted, the documented fallback is a temporary 302 to the homepage. A trashed parent produces 404 instead of directing visitors into an unavailable post.

There is no options page for normal use. The FAQ describes constants that can change redirect codes, but presents that as an advanced, unsupported customization. The absence of a settings screen can be useful for a tightly defined policy, though it also means an editor cannot casually choose a custom destination per attachment.

The plugin requires the attachment record to exist. Its FAQ explicitly rules out repairing a 404 after the attachment itself has been deleted. That matters when diagnosing old image links: first identify whether the requested address represents an existing attachment HTML page, a missing uploaded file or an unrelated URL. Installing the plugin does not restore a deleted record or regenerate a missing image.

Release 1.1.2 is GPLv3, requires WordPress 4.8 and PHP 5.6, and has a directory testing declaration through 6.9.12. That older testing declaration needs a current-site check. The reviewed workflow is free, with no required cloud account, paid site allowance or annual renewal. Choose it when its documented parent-status rules match your desired policy.

Disable Attachment Pages

Disable Attachment Pages redirects attachment URLs to the associated parent with 301, using a 302 homepage fallback when there is no parent. It also hides the attachment-page linking option in the editor through CSS, except when that option is already selected by default. This combines destination handling with a small measure intended to reduce new attachment-page links.

Its FAQ clearly distinguishes the plugin from WordPress’s newer default. Core may send the URL to the file itself; this plugin is intended to send it to the parent post or page on both older and newer installations. If the media file is already the right destination, the FAQ says the additional plugin is unnecessary.

The release notes also describe a fix to redirect only to a parent the visitor can actually reach. Even so, review your specific private, restricted and deleted-parent cases before relying on the result. A site’s membership rules may create more states than the simple published-versus-missing distinction suggests.

Version 2.0.0, released in November 2026, drops PHP 7 support and requires PHP 8.0 or newer. WordPress minimum is 4.0, with directory testing through 7.1.5; the license is GPL-3.0-or-later. The core workflow is a free download, with no required paid plan. The PHP requirement is a concrete compatibility gate, even on a site whose WordPress version appears to meet the older minimum.

Smart Attachment Page Remove

Smart Attachment Page Remove takes a different approach: it blocks HTML attachment pages and returns 404, with an optional 410 setting. It does not promise to find a replacement article for the visitor. Choose this policy when the attachment page should cease being a destination rather than pass visitors elsewhere.

The current FAQ says it applies regardless of WordPress’s attachment-page option and shows that option’s state in its settings. Maintenance moved to WP User Manager in October 2026. Release 4.0.6 includes an updated explanation of core behavior and a fix for a settings-framework clash. These changes are more useful decision signals than assuming that a long-lived plugin has an unchanged maintenance situation.

A 410 response communicates that a URL is gone, while a 404 says it cannot be found. Neither response guarantees a particular search-engine removal schedule, and neither is an access-control system for the underlying file. Decide based on the intended lifetime of the HTML URL, then ensure that your theme presents an appropriate error page to a human visitor.

The available version requires WordPress 4.0 and PHP 7.0, lists testing through 7.1.5, and uses GPLv2-or-later licensing. No paid upgrade, site subscription or external service is required for the reviewed settings. Its limitation is intentional: if your requirement is a relevant parent destination, returning an error is the wrong policy even when it successfully removes the attachment page.

Parent relationships, privacy and caching

An attachment’s stored parent is not necessarily every page where its image appears. An image can be reused in several articles, and a media-library upload can have no useful parent. Sample both cases before adopting a parent redirect globally. Sending an orphan to the homepage may be acceptable for navigation, but it does not create a relevant replacement for the original content.

Do not treat attachment-page suppression as media protection. A visitor who knows the public file URL may still download it. Confidential documents need an appropriately designed access-control workflow, not merely an unavailable wrapper page. Likewise, removing an HTML attachment destination does not authorize deleting the image that posts still embed.

Review other SEO and redirect tools for overlapping rules. Use one clear owner for this behavior and inspect the final response chain with caches included. A cached 301 can persist after a setting changes, which makes a previously visited URL a poor sole test. Record the old and new destination and verify an uncached representative request as well.

Choose the response that matches the content

Choose Attachment Pages Redirect when its parent-status policy and minimal interface fit an existing attachment inventory. Choose Disable Attachment Pages for parent-oriented redirects with explicit awareness of WordPress’s newer defaults, provided the server meets PHP 8.0. Choose Smart Attachment Page Remove when a 404 or 410 is the intended endpoint. All three documented core workflows are free; the main cost is checking your existing URLs and rules.

For wider routing needs, see our general redirect plugin comparison. If the actual task is swapping the image while preserving its media record, compare media replacement tools instead. Define the URL problem first, then choose the smallest policy that resolves it without changing unrelated media behavior.