Category Page URL (4 posts)

  1. gcarson
    Posted 4 years ago #


    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:


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


    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?

  2. jack randall
    Posted 4 years ago #

    permalink structures

    this should help.

  3. gcarson
    Posted 4 years ago #

    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.

  4. gcarson
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic