Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Canonical URLs are an essential part of SEO and are especially important with WordPress.
They make sure that search engines don’t get confused when different URLs point to the same content.
For example, in WordPress you can have multiple ways to reach content. You may have a blog post about “the difference between cats and dogs” which you’ve placed in two categories. This would result in two URLs that lead to the same blog post as follows:
As both URLs point to the same post, a canonical URL would tell search engines which is the preferred URL for your post, so that they don’t think you have duplicate content on your site.
WordPress does a great job of outputting the canonical URL for your content. All in One SEO just supplements WordPress by adding some advanced features as follows:
Custom Canonical URLs
All in One SEO lets you specify your own canonical URL for any item of content. You can find this setting by editing your content and scrolling down to the AIOSEO Settings section and click on the Advanced tab.
Enter the full URL you want to set for the Canonical URL in the field.
No Pagination for Canonical URLs
All in One SEO also lets you remove the page numbers from the Canonical URLs of paginated content. This means that you can point paginated content to the first page.
For example, page 2 of my Hello World post would normally have the URL https://mydomain.com/hello-world/page/2/ but All in One SEO would set the Canonical URL to https://mydomain.com/hello-world/.
You can find this setting by clicking on Search Appearance in the All in One SEO menu and then clicking on the Advanced tab.
Change the toggle to Yes to remove page numbers from the Canonical URLs of paginated content.