WordPress.org

Ready to get started?Download WordPress

Forums

Redirect Expired Posts to first category (3 posts)

  1. adambeaumont1
    Member
    Posted 1 year ago #

    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

  2. wpismypuppet
    Member
    Posted 1 year ago #

    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.

  3. adambeaumont1
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags