Support » Fixing WordPress » Category Page URL

  • Hi,

    I’m having some trouble determining what exact URL I should be using for my category pages. Because of the type of site, I use the category pages alot and want them to show up in Google. Basically, I have parent category and a child category. Now, for my site’s navigation bar, I’ve always use the following URL:

    http://www.site.com/category/child/.

    But, I’m seeing Google showing in the searches and traffic to the following URL, which is the same content as above

    http://www.site.com/category/parent/child/.

    As a hack, I did a 301 from the second to the first. Is there something else I’m doing wrong? I don’t think a 301 is an appropriate hack.

    By going with the first URL, did I make a mistake initially? I like the first URL better as its a little cleaner than the second. But for whatever reason Google likes the second even though I have no internal links pointing to it.

    Anyone have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • permalink structures

    this should help.

    Thread Starter gcarson

    (@gcarson)

    Hmmm.. Looked through it but I don’t see where it talks about the category page URL and the parent / not parent category showing in the category page’s URL. I’m guessing a redirect will work for this but didn’t know if there was something else.

    Thread Starter gcarson

    (@gcarson)

    OK figured it out. Plantinum SEO was putting in canonical urls for the category pages. For just 2 of my categories it was adding in the extra /parent/ as that’s what was returned from the get_category_link function.

    I decided to hack Plantinum SEO and add an if else statement to show the canonical URL I want for those two categories.

    Hope that helps someone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Page URL’ is closed to new replies.