WordPress.org

Ready to get started?Download WordPress

Forums

category permalinks not always working (10 posts)

  1. farzher
    Member
    Posted 1 year ago #

    Why isn't the uri /?cat=42 being rewritten?
    /?cat=43 goes to /category/tutorial/php
    /?cat=42 should go to /category/tutorial

    Both uri /?cat=42 and /category/tutorial display the correct tutorial category page. I just don't understand why it's not being rewritten.

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Try resetting your permalinks by first setting to default and then to your current settings.

  3. farzher
    Member
    Posted 1 year ago #

    No luck.

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Can you deactivate all plugins, revert to Twenty Twelve theme and try again?

    BTW, are you sure you updated to WordPress 3.5.2 ? Can you link to your site?

  5. farzher
    Member
    Posted 1 year ago #

    3.5.2 confirmed, 2012 theme, no plugins active: http://farzher.com/?cat=42
    Pretty weird.

  6. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    I find it's OK. cat=42 is tutorial (http://farzher.com/category/tutorial/)
    Now, what do you want to change or what kind of mistake do you find (apart from some edited code showing up)?

  7. farzher
    Member
    Posted 1 year ago #

    You're saying you can't visit http://farzher.com/?cat=42 because it redirects to http://farzher.com/category/tutorial/ ?

    That's all I want it to do, is force a redirect, like ?cat=43 does. When I visit ?cat=42 it doesn't force a redirect.

  8. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    The first link is the category ID and it resolves to its slug tutorial. Both ways it's OK as long as the same page loads. It becomes a problem only when the assigned page does not load or if you get a 404 error.

  9. farzher
    Member
    Posted 1 year ago #

    No, it's not okay; it's bad for SEO. Two indexed pages with the same exact content. I don't want ?cat=42 to exist.

    Either way, why is it doing that? Is it supposed to? I don't get it.

  10. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    No, it's not okay; it's bad for SEO. Two indexed pages with the same exact content

    No. It's the same page, not two pages. Click on your links or create a sitemap and see how many pages you get. You will get only one.

    I don't want ?cat=42 to exist.

    Delete it if you can. It's your site. But you will lose the second one also.

    Either way, why is it doing that?

    You will get a lot of stuff explaining that here.

Topic Closed

This topic has been closed to new replies.

About this Topic