yoast seo

Trailing double forward slashes in URLs in the SERPs…

Trailing double forward slashes in URLs in the SERPs…

March 17th, 2007 – 8 Comments

This query gives a result I hadn’t seen before (image), the same page was indexed with both a single trailing forward slash, which is of course normal, and with a double trailing forward slash… This is of course a duplicate content issue, especially when people link to the double slash one by accident. The fix for it in Apache is quite easy, just add this to your server config or htaccess:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)//$
RewriteRule . https://yoast.com%1/ [R=301]

Read more: ‘Duplicate content: causes and solutions’ »

8 Responses to Trailing double forward slashes in URLs in the SERPs…

  1. russell
    By russell on 13 June, 2009

    very helpful! thanks for solving this problem for me!

  2. AP
    By AP on 5 June, 2009

    Hi Joost, do you think that would be useful if the “//” are showing up not in the serps, but in the google analytics? thanks…

  3. sam
    By sam on 6 May, 2009

    thanks so much. i usually don’t comment on websites but your post helped fix a little bug of mine. it was totally annoying. thanks again!

  4. turkhackteam
    By turkhackteam on 3 May, 2008

    thanks you

  5. kurtlar vadisi pusu
    By kurtlar vadisi pusu on 22 April, 2008


  6. bob smith
    By bob smith on 17 April, 2008

    Nice read, more info to add to my useless knowledge of search engine ranking lol

    you may be interested in this


  7. Joost de Valk
    By Joost de Valk on 17 March, 2007

    Glad to be of service :)

  8. Gary
    By Gary on 17 March, 2007

    Hi Joost,

    Thanks for that, I had a site where /, was being indexed (strange).

    Have used your solution to fix it.

    Thanks again.


Check out our must read articles about Analytics