• Resolved kiranthory

    (@kiranthory)


    Hi,

    We are trying to update the canonical tags on our website by adding the following code to the .htaccess file.

    <FilesMatch "Zebra-Brochure-HC-Patient-ID-Solutions.pdf\.pdf$">
    
    ??Header set Link <https://www.bluestarinc.com/fileadmin/bluestar-typo3/documents/PDF-product/Zebra/hc100-patient-id-datasheet-en-us.pdf>; rel="canonical"
    
    </FilesMatch>

    We added the same format in another website .htaccess file but it’s not working in this website. Can you please check and provide us a solution if we need to update the code or anything?

    Thanks in advance!

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

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

    (@maybellyne)

    Hello @kiranthory,

    Thanks for using the Yoast SEO plugin. The?wpseo_canonical?filter can be used to customize the canonical URL. Typically, code snippets are added to your theme’s functions.php file. If you’re unfamiliar with using code snippets, we’d like to refer you to the WordPress documentation on?how to use a filter. An example code snippet can be found?here?and?here.

    Thread Starter kiranthory

    (@kiranthory)

    Hi @maybellyne

    We have already fixed this by doing some modification in the code. All good.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Canonical links are not updated’ is closed to new replies.