Beschreibung
The Smart Attachment Page Remove Plugin allows you to remove Attachment Pages automatically generated by WordPress
Originally created by Peter Raschendorfer, maintained by WP User Manager since October 2026.
Questions or problems? Ask in the support forum.
Verwendung
WordPress generiert automatisch für jede Datei, die in die Mediathek hochgeladen wird, eine eigene Anhang-Seite. Auch wenn du diese Seiten nicht benutzen möchtest und du Medien-Dateien niemals zur entsprechenden Anhang-Seite verlinkst, existieren diese Seiten und sind über deren automatisch generierte URL erreichbar. Das Plugin Smart Attachment Page Remove blockiert den Zugriff auf diese Anhang-Seiten und löst einen 404-Fehler („Seite nicht gefunden“) aus.
This ensures that Attachment Pages do not appear in the results of Search Engines unwanted.
Additionally this plugin prevents from comment spam sent via this Attachment Pages because they are no longer accessible.
Settings
Optionally, a status code 410 can be sent instead of status code 404.
HTTP status code 404 indicates that the requested URL could not be found. This is the default code always sent by WordPress when a URL can not be found. HTTP status 404 does not provide any further information why a URL was not found.
HTTP status code 410 on the other hand indicates that the requested URL is no longer available and will not be available again. If your Attachment Pages already have been indexed by search engines, HTTP status 410 informs them to immediately delete those pages from their index. This should speed up removal.
Regardless, in case of Attachment Pages it makes more sense to use HTTP status 410 anyway and it is recommendet to activate this option in any case.
This option is not activated by default only because it is not the usual behavior of WordPress. There are no negative effects in using HTTP 410.
Plugin Privacy Information
- This plugin does not set cookies
- This plugin does not collect or store any data
- This plugin does not send any data to external servers
FAQ
-
Doesn’t WordPress do this itself now?
-
Partly. Since WordPress 6.4, sites installed on 6.4 or later have attachment pages turned off by WordPress itself (the
wp_attachment_pages_enabledoption), and their URLs redirect to the file. Sites installed before 6.4 keep their attachment pages, and WordPress has no screen to turn them off.This plugin removes attachment pages on any site, whatever that option says, and sends a 404 or 410 instead of redirecting. The settings screen shows how WordPress’s own option is set on your site.
Rezensionen
Mitwirkende und Entwickler
„Smart Attachment Page Remove“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Smart Attachment Page Remove“ wurde in 1 Sprache übersetzt. Danke an die Übersetzer für ihre Mitwirkung.
Übersetze „Smart Attachment Page Remove“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN-Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
4.0.6 (2026-10-23)
- Maintained again, by WP User Manager
- The settings screen and a new FAQ explain WordPress’s own attachment pages option (WordPress 6.4+)
- Fixed: the settings screen could run on another plugin’s copy of the shared framework, such as 404page’s
- Removed the retirement notice and dead help links
- Tested up to WordPress 7.1
4.0.5 (2024-04-17) URGENT BUGFIX
- Bugfix after Cleanup
4.0.4 (2024-04-16) CLEANUP
- Cleanup
4.0.3 (2022-10-03) FINAL VERSION
- removed all links to webiste
- removed request for rating
4.0.2 (2022-05-29)
- just cosmetics
- Plugin Foundation updated to PPF08
- removed unneeded leftovers from pre 4.0.0
4.0.1 (2020-08-25)
- uninstall fix
4.0.0 (2020-08-23)
- now uses my own Plugin Foundation
- new UI
3 (2019-01-04)
- option to send HTTP status 410 instead of HTTP status 404
- code improvement
- UI improvements
2 (2018-04-17)
- minor code- & UI-improvements
1.2 (2017-11-16)
- faulty display in WP 4.9 fixed
1.1 (2017-06-26)
- redesigned admin interface
- code improvement
1.0 (2017-01-12)
- Initial Release
