WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Redirection] How to Create These 404 Redirects...? (6 posts)

  1. Drover
    Member
    Posted 4 years ago #

    I have a WordPress based classified ads site. I get a lot of 404s because search engines cache ad listings that have expired. I don't want to return a 404 to these visitors, but instead redirect them to the category of the listing they clicked thru to.

    For example, if they found a cached listing at...hxxp://mysite.com/category/xyz/listing/...that was expired, I'd like them simply be redirected to the list of similar ads at hxxp://mysite.com/category/xyz/.

    I'm not sure whether this plugin is ideal for my purpose so that's my first question? Is this plugin suited for this? If so, how would I accomplish this?

    Thanks.

    http://wordpress.org/extend/plugins/redirection/

  2. Drover
    Member
    Posted 4 years ago #

    Anyone?

  3. Galen Evans
    Member
    Posted 4 years ago #

    Sounds like that plug-in is just what you need, particularly if you're not comfortable doing the redirects manually.

  4. Drover
    Member
    Posted 4 years ago #

    Yeah, it looks like it should work, but I'm not sure how to do it. Anyone have experience with this plugin that can help?

    Thanks.

  5. Steve Delve
    Member
    Posted 4 years ago #

    Hey there!
    I would be very interested in how to do that, too!
    Is there anyone who can help?
    What do i have to type into the source and target url?

    Thanks!

  6. Luke Gedeon
    Member
    Posted 4 years ago #

    You have to do a regular expression substitution. Make sure to click the regular expression check box then use:

    /category/(.*)/(.*) in the first box and:

    /category/$1/ in the second box.

Topic Closed

This topic has been closed to new replies.

About this Topic