WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Titles and descriptions due to trailing slash at end of URLs (4 posts)

  1. loudcow
    Member
    Posted 2 years ago #

    Google Webmaster tools is telling me I've got duplicate titles and descriptions on over 65 pages. On further investigation it appears google is reading the exact same page URLs but considering them completely different pages as follows.

    mysite.com/about/
    mysite.com/about

    Note there is no trailing slash on the second URL. This is exactly the same page.

    I use WordPress SEO by Yoast.

    The permalink in general settings is set as /%postname%/ - i.e. including the trailing slash at the end of each URL.

    Yoast's sitemap appears to generate perfectly and includes only the trailing slash URL for each page and post.

    Problem is it means google sees not only the Title of these pages as duplicates BUT also the meta description and of course content.

    Hence, I've been slammed with 'duplicate content' by the Google Gods.

    First up, Is there a simple way to redirect all the URLs without trailing slashes to those that have trailing slashes. I can do manually but hoping for a quick fix:)

    Secondly, to ensure this doesn't happen full stop is there an obscure setting I'm missing somewhere (either in Yoast's plugin or WP setings) that is creating the duplication of the URLs?

    Thanks in advance.

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    What have you set custom permalink structure to? Does your theme included some old or affecting rewrite rules? Does your host fully support resrite rules?

  3. loudcow
    Member
    Posted 2 years ago #

    Hey there - custom permalink structure is set to /%postname%/ - with the trailing slash.

    I'll check out the other two things you question.

    Thanks a bunch for a quick reply:)

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    See this Codex item on Permalinks

Topic Closed

This topic has been closed to new replies.

About this Topic