WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website (http://www.ticketyoda.co.uk) 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


when it expires

to go to


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

I cannot seem to get any plugins to work for me so stuck at the moment.

share|improve this question

I suggest not to move them to drafts. If they are published, then you can check for the event date & then redirect to the appropriate page using the template_redirect hook

share|improve this answer
Would that solution mean my pages are still indexed and therefore I would have hundreds of outdated pages indexed or would that template_redirect work for google... The main aim is SEO so would this work. thanks – Adam Beaumont Oct 31 '12 at 14:03
Make sure to change the header to 301 Permanent Redirect, then you will be fine – Mridul Aggarwal Oct 31 '12 at 14:18
Il give it a go and let you know. Hopefully I can get it to work automatically. – Adam Beaumont Oct 31 '12 at 14:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.