• Resolved morpheus83

    (@morpheus83)


    How can I add a canonical tag to the search page. I would want to have a permanent canonical tag that points to – mywebsite.com/search/ as of now Yoast is not displaying a canonical tag.

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

    (@maybellyne)

    Hello Morpheus,

    Thanks for reaching out regarding your search page; I assume you are referring to your internal search pages.

    By default, the Yoast SEO plugin sets your internal search pages to noindex. As such, there will be no canonical URL output. You can learn more at https://yoast.com/yoast-seo-hidden-features/#search-results

    Thread Starter morpheus83

    (@morpheus83)

    Thanks for the reply, I understand yoast adds a no index attribute to the search page. But we are seeing a lot of URL spam to our search page (thousands of pages) and they Google is crawling all those pages. We are concerned this will affect our crawl budget. This is the reason we need to add a canonical to our internal search page.

    Hey @morpheus83,

    Adding a canonical to them wouldn’t battle with your crawl budget. Alternatively, you might want to add one or two disallow lines in your robots.txt like;

    Disallow: /?s=
    Disallow: /search/

    Depending on what the URLs look like.

    PS: We’re aware that search spam is a problem for many websites, and we’re looking into ways that we might help users combat it.

    Plugin Support Maybellyne

    (@maybellyne)

    This thread has been marked as resolved due to a lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Canonical tag for search page’ is closed to new replies.