PDF Files and canonical links

#59915
  • Resolved Anonymous
    Rank Math free

    Hello,

    I would like to offer PDFs to my customers that should be indexed by Google.
    But the canonical link should be a landing page that contains more or less the same information as the PDF files.

    How can I upload an PDF file and set a canonical link using rankmath?

    Thank you

    BR

    BjΓΆrn

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    I am not sure about your question so let me ask you a few questions:

    Do you want to upload a file (let’s say: “myfile.pdf” to WordPress. It that case the URL would be something like https://mywebsite.com/wp-content/2020/06/08/myfile.pdf.

    Then you want to show a page instead of that file when users try to navigate to that URL, a page where the user could see some details about the PDF and finally download it.

    Is it what you are trying?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Anonymous
    Rank Math free

    Hi Alberto,

    thanks for your reply.

    I will have html page (https://bjoernvilcens.de/pdf-portfolio/) that contains links to different pdf files.

    The canonical link of those different pdf files should link to a html page so that link juice from that PDF is given to the correct page and not to the PDF itself.

    e.g.
    https://bjoernvilcens.de/pdf-portfolio/pdf-portfolio-business.pdf should have a canonical link reference to https://bjoernvilcens.de/businessfotografie

    and so on

    Hope I could clarify my issue πŸ™‚

    BR

    Todd
    Rank Math free

    Hello,

    I appreciate the clarification.

    Unfortunately, this cannot be done as it is not possible.

    Since PDF files do not have HTML tags, you cannot add canonical tags to them.

    Instead of directly linking to PDF files, you can create a new post for each PDF and then embed the PDF within that post.

    You can easily add or change a canonical tag that way.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘PDF Files and canonical links’ is closed to new replies.