Support » Fixing WordPress » How to get clean posts urls (without trailing slash)?

  • Resolved silis25

    (@silis25)


    Hi,

    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” />

    How can I get posts urls WITHOUT having the forward-slash at the end?

    Thanks and regards,

    Kfir Silis

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get clean posts urls (without trailing slash)?’ is closed to new replies.