Viewing 1 replies (of 1 total)
  • Plugin Contributor Calin Vingan

    (@calinvingan)

    Hi,

    You can use the Squirrly hook to customize the canonical.

    Add this code in the theme function.php at the end:

    add_filter('sq_canonical', 'trailingSlashCanonical', 11);
    
    function trailingSlashCanonical($canonical) {
        return rtrim($canonical, '/') . '/';
    }
    

    You can find more details how to customize the Squirrly Hook here:
    https://howto.squirrly.co/kb/add-custom-canonical-link/

    Please write a short review for Squirrly SEO to help us keep the plugin free.

    Best regards, Calin

Viewing 1 replies (of 1 total)
  • The topic ‘Trailing slash in canonical when the blog is in a subdirectory’ is closed to new replies.