how to add canonical tag in pdf file (how to declare canonicale tag in pdf file)

#636579
  • Resolved Rajesh Kumar
    Rank Math free

    how to add canonical tag in pdf file (how to declare canonicale tag in pdf file)
    Yost provide this but you don’t
    please add a option where file also comes with self-declare canonicale tag
    or user declare canonicle tag or link

    on my site if present 5 pdf than how declare canonicle there is no option for pdf file

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Please note that Canonical tags cannot be added to attachment files like PDFs, images, and videos as they can only be added to HTML web pages.

    However, it is completely fine if Google Search Console cannot detect a canonical on your PDF URLs as well.

    Instead of directly linking to PDF files, you can create a new post for each PDF and then embed the PDF within that post. In this way, you can easily add or change a canonical tag that way.

    Moreover, to apply the canonical to your PDFs, you may need to apply it directly to your header file using rel=”canonical” HTTP header instead:
    https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en&visit_id=638308811598157716-3283038165&rd=1#rel-canonical-header-method

    You can also check this helpful article to achieve that using .htaccess method.

    Hope that helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘how to add canonical tag in pdf file (how to declare canonicale tag in pdf file)’ is closed to new replies.