Slash in the end of URL creates duplicate pages?

Community Forums Forums General Discussion Slash in the end of URL creates duplicate pages?

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  works 2 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #47732


    A xml sitemap generator showed me having tons of duplicate pages, showing that crawlers probably see all my URLs for pages but only without slash in the end, as duplicates of those with slashes.

    I obviously just wrote one page (without duplicates), the slash was automatically created for each page. And i have no idea how to “remove the duplicates” which i never wrote and do not even have in my All Pages manager. Slash or no slash, whichever it is, it needs to be only one page. How do i achieve that?

    What did i do wrong and end up having both kinds? How do i remove the other one?

    Other people’s sites seem to automatically redirect to the slash version of the page URL. Why does my site do not redirect but opens and stays on URL without the slash if someone happen to type the URL without the slash into the address bar?

    Please help!
    Thank you in advance.



    First of all, I think you should verify that duplicate issues are indeed a problem for your site. You can do this by going to Google and searching for:

    This will return all the pages that Google has indexed for your site. Do you see duplicate results (1 with trailing slash and 1 that doesn’t)? I’m betting you won’t because Genesis makes use of the canonical tag to tell search engines which is the correct URL to index.

    If you do see duplicate content, and/or if you want to leave nothing to chance, you can do this:

    1. Make sure that your permalink settings are the way you want it. By default it’s set up to be /%postname%/ (with a trailing slash). If you don’t want the trailing slash, change it to /%postname%

    2. Add some code to your .htaccess file to redirect visitors to the canonical version of the URL (automatically add or remove the trailing slash). Here are 2 pages that has the code you need.

    Note: If you don’t know what a .htaccess file is you probably shouldn’t do step 2.

    Good luck!

    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie



    Thank you so very much, Blogjunkie. It was most helpful and now my slashless URLs look so much prettier (what a great boost to my work motivation).

    As for .htaccess file, (you guessed it right, i have no idea what it means and what am i doing, but) i already redirect all my indexed pages as they all used to have www. preffixes and .html extensions. So each redirect command in my .htaccess looks like this (is this the correct way?):

    redirect 301 /fibroid-surgery.html

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.