WordPress.org

Ready to get started?Download WordPress

Forums

Broken links! Redirecting old categories to new? (7 posts)

  1. wiselywoven
    Member
    Posted 5 years ago #

    Hi WordPress friends,
    I am novice when it comes to URL redirects. I changed categories in my client's site and now I get 404s. How can I redirect old categories to new?

    Tried Redirection Plugin and it was giving me errors.

    Help!!!
    Thanks!

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Could you use .htaccess Redirect 301?

  3. wiselywoven
    Member
    Posted 5 years ago #

    Esmi, thanks for the reply.

    I guess that's my question. What are my options? I don't think I'm dealing with a permalink structure issue am I?
    If there is 301 redirect code that I can use to manage these category redirects in the .htaccess than I would love to know.

    Most code I see people talking about isn't specific for category redirecting.

    For example: I want:
    http://www.thecanaryreport.org/category/products/
    to become
    http://www.thecanaryreport.org/category/home-garden/products/

    and I have alot of redirects like this with category changes to do.

    Also, if anyone knows how to use the Redirection plugin that might work for this but I can't get it to work so far.

  4. wiselywoven
    Member
    Posted 5 years ago #

    Now my categories are really in shambles. Wish there was a WordPress 911 I could call.

  5. esmi
    Forum Moderator
    Posted 5 years ago #

    I don't think you're going to find an easy solution for this. The problem is that there's no obvious, logical, connection between:

    http://www.thecanaryreport.org/category/products/

    and

    http://www.thecanaryreport.org/category/home-garden/products/

    if you also have a number of other categories that you have moved from /products to /some_other_sub_category/products/

    I don't think you're going to be able to handle this by manipulating the permalinks, installing a plugin or even using a regexp as part of an .htaccess redirect (although I'd freely admit to being a novice in .htaccess regexps myself).

    Unless you can get hold of someone who is really handy with regexps, you could end up having to specify each and every redirect.

    Sorry I can't be of more help...

  6. wiselywoven
    Member
    Posted 5 years ago #

    Esmi, I think you may be right. There is no easy answer.

    I got some help from someone who is wiser than I in The Code and we found out I did something weird with the Redirection Plugin that screwed up my .htaccess file. Cleaned that up and added the word 'category' to the extended options in the permalink settings of the WP dashboard. This fixed my 404s for all my live category links.

    For all the dead links (abandoned category URLs) they are still 404ing but at least we're making progress I guess.

    Will try Redirection plugin again.

  7. Shane G
    Member
    Posted 4 years ago #

    Hi,

    Check with this plugin:

    http://wordpress.org/extend/plugins/wp-no-category-base/

    It may be helpful to you.

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic