How To Add The Canonical Link For Every Blog Post (1 post)

  1. silis25
    Posted 3 years ago #


    1. I want to add canonical link to my blog posts.
    The solution I have found is adding the following:

    <link rel="canonical" href="<?php the_permalink(); ?>"/>

    2. The problem with that solution is that it adds forward-slash '/' at the end of every permalink whereas I want to have the following format:

    <link rel="canonical" href="http://www.letthemstare.com/aventure-dress-giveaway" />

    3. How can I add canonical link to all of my blog posts WITHOUT having the forward-slash at the end?

Topic Closed

This topic has been closed to new replies.

About this Topic