• Resolved disura

    (@disura)


    Hi,

    I have a custom post type as “Case Studies” with the URL set to be /results/{postname}. The archives page URL is set to /results. However the canonical URL of the page is automatically set as /blog/results for the archive page.

    How can I get this fixed so that the canonical URL is /results.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil

    (@devnihil)

    By default the Yoast SEO plugin will output a canonical tag for every page/post on your site, and will use the permalink of that page/post for the canonical URL value. Normally, you would leave the Canonical URL value in the plugin blank by default and the canonical tag will automatically be set to the same value as the page’s permalink.

    If you do wish to change the Canonical URL for a page, you would need to perform the following steps:

    ? Go to the ‘Edit’ screen for a page/post
    ? Scroll down to the Yoast SEO box and click on the ‘Advanced’ tab.
    ? Set a value set for the Canonical URL
    ? Click ‘Update’

    We also have additional information on using the canonical tag and in what situations to implement it at the following link: https://yoast.com/rel-canonical/.

    Thread Starter disura

    (@disura)

    Thanks for the reply. The issue is that as this is an archives page there is no edit option to edit the page.

    As for the pages default URL it is /results/ however Yoast seems to add a /blog/ to the canonical URL.

    Plugin Support Maybellyne

    (@maybellyne)

    Can you walk me through how to re-create your CPT? Did you code it or use a plugin?

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wrong canonical URL in Custom post type archive page’ is closed to new replies.