BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Canonical Attachments icon
Slowing down Tested up to 6.8.10 #27 in attachments

Canonical Attachments

Get more information from analytics and higher rankings by utilizing canonical http headers in htaccess for non image media attachments like pdfs.

Active installs300+100+ tier
Downloads · 30d128▲ +11.3% vs prev. 30d
Rating3.7/53 reviews
Health score38/100At risk
All-time downloads7.8KSince Jan 2017
Support resolved—No recent threads
RequiresWP 4.5.1PHP any
Downloads · 7d32▲ +3.2% week over week
Our verdict

Consider an alternative

Canonical Attachments shows warning signs in 2026 — compare the alternatives below before installing. It runs on 300+ sites, is rated 3.7/5 and was last updated 1 year ago, and scores 38/100 on our health check.

  • Small user base (300+ active installs)
  • Very few reviews so far
  • No update in over a year
  • Only tested up to WordPress 6.8 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

3711Jun 30Aug 13Sep 27
Yesterday3
Daily average (1y)3
Peak day15Aug 18, 2026
Last 12 months1K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Canonical Attachments stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
attachments #17 3,445 Best attachments plugins →
canonical #5 1,332 Best canonical plugins →
canonical tags #5 889 Best canonical tags plugins →
canonicalize #1 10 Best canonicalize plugins →
pdf >100 3,299 Best pdf plugins →

Version adoption

Share of active sites per release.

  • 1.878.3%
  • 1.721.7%

Rating breakdown

★★★★★★★★★★ 3.7 from 3 reviews

  • 5★66.7%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★33.3%

About Canonical Attachments

From the official readme · v1.8

Description

This plugin was developed to allow canonical tags as response headers to be created via htaccess for attachment files such as pdfs and docs.

The plugin:

  • Generates an htaccess file to manage the wp-content/uploads directory where these files are being uploaded
  • Updates the htaccess file with canonical tags which are delivered via a header when the attachment is called
  • Creates a dashboard where you can easily filter and find attachments without canonicals or that are not attached to a post.
  • Creates a dashboard where you can easily attach a file to its parent post (one at a time or in bulk) or manually add/remove a canonical tag for a file
  • Allows you to add a canonical url from the media file in the library or when you upload
  • Creates a dashboard to edit the .htacess file directly for the uploads directory in case there are additional files in the directory that were uploaded outside of wordpress (e.g. during a site migration)

The challenge: Analytics software such as Google Analytics, cannot track a user that enters a website via a pdf file in Google search results. Files cannot have a standard canonical tag added in the <head> and instead the canonical tag has to be added via an http header when the file is requested from the server. In order to accomplish this, we need to have an htaccess file listening for a request to that file, and then sending the header.

Expected outcome: PDF files and other attachments will be replaced in search results with the post or page counterparts, and we will be able to measure the traffic to those pages and provide calls to action for downloading the file, submitting contact forms, etc. Note: Canonical tags do not force a search engine to index one url vs. another, but act as a guideline/request to the search engine. As long as the attachment content is similar to the canonical URL, you should have no problem encouraging the search engines to choose the correct version.

Future Features and Development

Based on the feedback, we hope to continue developing additional features to support user requests. Current future feature ideas include:

  • Automatic canonicalization of non-image files to attached post
  • Integration with non-apache servers
  • Canonical builder for non-wordpress media files
  • Option to bulk delete canonical associations and delete htaccess on uninstall

Installation

This section describes how to install the plugin and get it working.

  1. Search for “Canonical Attachments” from the Add Plugins page and click install
  2. Alternatively: Upload canonical-attachements.zip to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Enjoy!

Frequently asked questions

Will this work on wordpress installs that do not use apache server

No. This plugin only works for wordpress installations on servers running apache, as it is depending on writing the rules to the .htaccess file.

Do I have to manually create the .htaccess file in the uploads directory?

The plugin will need to be able to write to the directory in order to work. When you install the plugin, it will create the .htaccess file with the proper permissions.

What happens to the .htaccess file if I uninstall the plugin

As there may be other items in the htaccess file that are important, uninstalling this plugin does not remove the .htaccess file. You will have to do this manually. It is important to note that uninstalling this plugin does not remove any content of the htaccess file. If you wish to remove canonicals, you should use the bulk editor or manually edit the .htaccess file using the editor option. When you remove by manually editing the htaccess file, the associations will still exist in the wordpress database as an option for that media item, but since they are not in the .htaccess file, they will…

Why is there an option to edit the .htaccess directly?

In some instances there may be files outside of wordpress’s database that you wish to canonical, so we wanted to make it accessible for adding those items. The most likely case for this would be if you migrated to wordpress and manually moved a directory or files into the uploads folder vs. uplaoding through wordpress. Future iterations of this plugin might include a way to better manage non wordpress linked media files.

Some of my media files aren’t attached to a post, what happened?

This has nothing to do with our plugin, but occurs when you upload media files when you are not editing / creating a post. The wordpress library has a filter for unattached media items, and you can attach them manually there. Our editor does not require the media item be attached to a post, it just makes it possible to use the bulk feature to attach vs. having to do it one at a time. You can also use the post finder from the “attach media” option in our bulk editor.

Who built this awesome plugin?

This plugin was developed by the good folks at Hive Digital

Changelog

This version addresses a security vulnerability. Upgrade immediately.

1.8

  • Testing with latest version of wordpress
  • Testing with PHP 8.3
  • Fixing warnings from PHP 8.3
  • Changing author logo
  • Thank you to @licuriciul for update/testing for latest versions

1.7

  • Testing with latest version of wordpress
  • Bug Fix .. thank you @bnovembit for pointing out the issues with return inside of if statement.

1.6

  • Testing with latest version of wordpress

1.5

  • Bug Fix .. thank you @dglingren for pointing out the return $post issues
  • Updated screenshots to highlight new functionality
  • Shortcut to plugin settings / options page

1.4

  • Bug Fix .. thank you @philippmuenchen for pointing this out!

1.3

  • Added options to filter the main canonical page
  • Added options to attach/detach media to posts

Full changelog on WordPress.org →

Screenshots

Plugin dashboard with options for bulk editing or individual editing to create canonicals for attachment files, and easy filters to drill down to those files needing fixed!
Plugin dashboard with options for bulk editing or individual editing to create canonicals…
Main page with options explained / highlighted
Main page with options explained / highlighted
Editor page for the uploads .htaccess file
Editor page for the uploads .htaccess file
Media pages have an input field for the canonical URL
Media pages have an input field for the canonical URL
Option to enter canonical url when you upload a file
Option to enter canonical url when you upload a file

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Canonical Attachments alternatives

All attachments plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Export media with selected content (by DKZR) Export media with selected content (by DKZR) Include all relevant attachments in your export. by joost de keijzer 40K+ ★★★★★★★★★★ 4.5 (93) 4 weeks ago 89
2 File Upload Types by WPForms File Upload Types by WPForms Easily allow WordPress to accept and upload any file type extension or MIME type, including… by Syed Balkhi 40K+ ★★★★★★★★★★ 4 (20) 6 days ago 81
3 Lightbox with PhotoSwipe Lightbox with PhotoSwipe Integration of PhotoSwipe (http://photoswipe.com) for WordPress. by Arno Welzel 20K+ ★★★★★★★★★★ 4.9 (115) 4 weeks ago 91
4 Unique Headers Unique Headers Add unique custom header images to individual pages, posts, categories, or tags. by Ryan Hellyer 10K+ ★★★★★★★★★★ 4.9 (160) 5 months ago 79
5 Media Deduper Media Deduper Save disk space and bring some order to the chaos of your media library by removing and… by cornershop 9K+ ★★★★★★★★★★ 3.8 (44) 10 months ago 44
6 Document Gallery Document Gallery This plugin generates thumbnails for documents and displays them in a gallery-like format… by Dan Rossiter 8K+ ★★★★★★★★★★ 4.8 (112) 3 months ago 61
7 Download Attachments Download Attachments Download Attachments is a new approach to managing downloads in WordPress. It allows you to… by dFactory 8K+ ★★★★★★★★★★ 4.5 (46) 4 months ago 76
8 Responsive WordPress Slider – HG Slider Responsive WordPress Slider – HG Slider A responsive image rotator plugin that easily creates WordPress slideshows. Now 100%… by richardgabriel 7K+ ★★★★★★★★★★ 3.8 (12) 5 years ago 36
9 GD bbPress Attachments GD bbPress Attachments Implement attachments upload to the topics and replies in bbPress plugin through a media… by Milan Petrovic 6K+ ★★★★★★★★★★ 4.3 (26) 6 months ago 71
10 Attachment Importer Attachment Importer Import attachments from another WordPress blog using a WXR file. by Spencer Piontkowski 3K+ ★★★★★★★★★★ 4.3 (26) 12 years ago 42

FAQ

Canonical Attachments: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Sep 28, 2026

Is Canonical Attachments free?

Yes. Canonical Attachments is free to download and use from the official WordPress.org plugin directory.

Is Canonical Attachments safe to use in 2026?

Canonical Attachments shows warning signs in 2026 — compare the alternatives below before installing. It runs on 300+ sites, is rated 3.7/5 and was last updated 1 year ago, and scores 38/100 on our health check.

How many websites use Canonical Attachments?

Canonical Attachments is active on 300+ WordPress websites and has been downloaded 7,847 times since it launched in January 2017. It was downloaded 128 times in the last 30 days.

Does Canonical Attachments work with WordPress 7.1?

Canonical Attachments is officially tested up to WordPress 6.8.10, while the latest release is 7.1.2. It may still work, but try it on a staging site first.

When was Canonical Attachments last updated?

The latest version, 1.8, was released on August 25, 2025 (1 year ago).

Who makes Canonical Attachments?

Canonical Attachments is developed and maintained by hivedigital.

What are the best alternatives to Canonical Attachments?

The most popular alternatives to Canonical Attachments are Export media with selected… (40K+ installs), File Upload Types by WPForms (40K+ installs) and Lightbox with PhotoSwipe (20K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.