Forums

Pretty URL weirdness (5 posts)

  1. peterdbaron
    Member
    Posted 5 months ago #

    I've noticed in my stats that google is indexing some non-pretty URLs from my wordpress-based blog.

    For instance, this URL is appearing google search:

    http://www.example.com/blog/index.php?p=439

    It should be:

    http://www.example.com/blog/2009/01/blog-title-name.html

    Last week I added the plugin Redirection in order to consolidate categories & tags via 301s. Any chance that this has something to do with it? Recs on how to solve this?

    Fyi - I've been using pretty URLS with wordpress from the very beginning and this is the first time that I've seen this issue. Thanks in advance for your help!

  2. Jonathan Dingman
    Member
    Posted 5 months ago #

    Did you check your Settings > Permalinks to make sure those are still set?

    I haven't used Redirection to redirect all the old links to new ones, but it sounds like something in your permalink settings.

  3. peterdbaron
    Member
    Posted 5 months ago #

    Thanks for reply.

    I did, which is the weird thing. It's using this custom setting:

    /%year%/%monthnum%/%postname%.html

    Everything's status quo when I publish a new post. In fact, I can't figure out how google's finding the non-pretty URLs since the nav structure references pretty URLs. This is really odd.

  4. DMackCA
    Member
    Posted 4 months ago #

    You'll notice your posts are reachable from both URLs, I think the ?p=### version is always available. Look into adding a "canonical link tag" to your WP theme, to tell search engines and robots the "true" location of your pages.

    Hope that helps!

  5. peterdbaron
    Member
    Posted 4 months ago #

    Thanks, it helps a lot! Fortunately the canonical is there.

Reply

You must log in to post.

About this Topic