WordPress.org

Support

Support » How-To and Troubleshooting » Redirect Expired Posts to first category

Redirect Expired Posts to first category

  • I have a website and the events listed become outdated after they have been and gone.
    I have set it up so that posts automatically expire and are moved to Drafts.

    So now I have links which point to the site which are outdated. What I want is the following redirection

    xyz.com/1stcategory/2ndcategory/eventABC

    when it expires

    to go to
    xyz.com/1stcategory/2ndcategory/

    This not only makes sense for a user point of view but also as an SEO factor.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • wpismypuppet

    @wordpressismypuppet

    What you want is some kind of 404 redirect plugin, unless you know how to write your own. Since the page is expiring and the content is no longer there/relevant, you should use a 404 redirect for SEO purposes.

    I can’t tell you which 404 redirect plugin is the best, but look for one that’s automatic. Those will check when the user hits a 404 and try to redirect them to an appropriate page instead.

    Thanks I will look into it and let you know my findings, in the meantime if anyone else has any other suggestions please let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect Expired Posts to first category’ is closed to new replies.