WordPress Core
An attachment page is an automatically generated WordPress page for each uploaded file. It lives at a URL like /your-domain.com/?attachment_id=123 or /media/filename/ and displays the file alongside its title, caption and description. Most sites disable attachment pages entirely.
Why attachment pages exist and why most sites disable them
Attachment pages were part of early WordPress architecture — each file had its own URL for direct access. In practice, these pages serve almost no purpose for modern sites: they duplicate content, create thin-page SEO issues, and the URLs are rarely shared or linked.
Yoast SEO, Rank Math and other SEO plugins offer an option to redirect attachment page URLs to the parent post or the file itself. This is recommended for almost all WordPress sites. Google’s Search Console often flags attachment pages as low-quality pages.
Attachment pages and media URLs
An attachment page URL is different from the direct file URL. The direct file URL points to the physical file: https://example.com/wp-content/uploads/2025/04/image.jpg. The attachment page URL points to the WordPress page about that file. When images are referenced in content, they use the direct file URL, not the attachment page URL.
Frequently asked questions
Should I disable attachment pages?
For most sites, yes. Unless you have a specific reason to serve attachment pages — a photography portfolio where each image needs its own page, for example — redirect them to the parent post or the file directly. Most SEO plugins handle this in one setting.
Do attachment pages affect Media Score in Mediapapa?
No. Media Score evaluates compression, metadata completeness and format — not the attachment page state. Whether attachment pages are enabled or redirected does not affect the score.
Related terms: Attachment · Metadata
Curious what is hiding in your library?
Scan it for free. No account needed.