Attachment/media rel canonical to post url

#511198
  • Resolved Adi D
    Rank Math free

    Hi
    I have a question regarding rankmath and rel canonical

    I have post which is only written in abstract (not full article) , full article are in pdf format

    And from post page I link to pdf full article via add media options

    Is it possible for rankmath to add hhtp header rel canonical on pdf url back to post url ?

    Since it’s not html I supposed the only way to is via http header

Viewing 1 replies (of 1 total)
  • Nigel
    Rank Math business

    Hello,

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

    As you correctly pointed out as it’s non-HTML page, the only way to add canonical to PDF is via .htaccess file.

    Please enter this code in .htaccess file, changing the values according to your files and URL


    Header add Link ‘<http://www.domain.com/post-link>; rel=”canonical”‘

    Let us know how it goes. Looking forward to helping you.

    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 ‘Attachment/media rel canonical to post url’ is closed to new replies.