Forums

Google duplicate content in subdirectory (3 posts)

  1. litehouse
    Member
    Posted 2 years ago #

    I've noticed that all my content is recognized as duplicate by google: posts, tags, pages, and categories. I have my wordpress installed in a subdirectory off the domain. For each submission, google identifies 2 links:

    domain/unique-story
    domain/sub/unique-story

    domain/unique-tag
    domain/sub/unique-tag

    domain/unique-category
    domain/sub/unique-category

    domain/unique-page
    domain/sub/unique-page

    I use google sitemap, and it publishes only the links with the domain and not the subdirectory included.

    Does anyone have any recommendations on how to fix this?

  2. whooami
    Member
    Posted 2 years ago #

    did you EVER have libnks pointing to that subdomain? you HAD to have ONE somewhere -- googlebot follows links, it doesnt go places its not sent.

    That said, now that you are here..

    you could move wordpress into the root of your domain -- that would cause all the subdir links to 404. A better solution, though, to the 404 might be to send a 410 Gone. (thats what I would do -- Google likes them) You can do that with a one line edit to your .htacces

    http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=40132

    Another solution is to just send the 410 Gone without moving the wordpress install.

  3. litehouse
    Member
    Posted 2 years ago #

    I used to have a simple 301 redirect in the root domain, but i've since changed it to follow these instructions:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    So google was formerly indexing everything as domain/sub/*. Now those links no longer apply, so what is the best way to change things so that Google removes those links? Is this better done with robots.txt? Should i ad the url domain/sub to google and give them the preferred address? What's the best solution if you know?

Topic Closed

This topic has been closed to new replies.

About this Topic