Yoast SEO
98Real-time SEO guidance, schema, and AI built in. Help search engines and AI systems understand your content. A...
Completely remove "attachment" pages for WordPress media. Improve SEO and prevent conflicts between page and image permalinks.
Disable Media Pages is a WordPress plugin that prevents the creation of attachment pages for media files. By default, WordPress generates a separate page for each attachment, which can negatively impact SEO and reserve slugs that may be needed for other content.
This plugin automatically changes attachment slugs to unique IDs, preventing conflicts with other pages. If someone tries to access an attachment page, it will return a 404 status code. The plugin also provides WP CLI support for managing existing attachment slugs.
Best for: This plugin is suitable for WordPress users who want to manage media attachments more effectively and enhance their site's SEO.
What it does well
Where it falls short
Disable Media Pages provides a straightforward solution for handling attachment pages, making it useful for those concerned with SEO and slug management.
joppuyo's own description of Disable Media Pages, lightly tidied.
Completely disable “attachment” pages created by WordPress.
By default, WordPress creates a page for each of your attachments. This is can be undesirable because of two reasons:
Attachment pages don’t have any content, except an image, so they provide little value and can negatively affect your SEO because they are so-called thin content. Even worse, attachment pages may in some cases rank higher than your actual content pages which leads to a poor user experience.
Attachment pages can accidentally reserve slugs on your site. Let’s say you upload an image named contact.jpeg, an attachment page https://example.com/contact is automatically created. If you then try to create a page named Contact, the URL for that page will be https://example.com/contact-2 which isn’t that great.
This plugin works by automatically setting all attachment slugs to an unique id, so they won’t conflict with your pages. If an attachment page is accessed, the plugin will set a 404 status code and display the “page not found” template.
You can also mangle any existing attachment slugs so they won’t cause any issues in the future.
The plugin supports WP CLI.
wp disable-media-pages mangle
wp disable-media-pages restore
Other plugins for search engine optimisation.
Real-time SEO guidance, schema, and AI built in. Help search engines and AI systems understand your content. A...
Grow your organic traffic and AI visibility with powerful SEO tools, XML sitemaps, Schema automation, and buil...
Translate WordPress with Google Translate multilanguage plugin using AI translation. Complete multilingual SEO...
AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...
Generate multiple types of sitemaps to improve SEO and get your website indexed quickly.
WordPress SEO plugin with AI SEO metadata, schema, XML sitemap, redirections & Search Console. Privacy-fir...