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

example.com/1stcategory/2ndcategory/eventABC

when it expires

to go to

example.com/1stcategory/2ndcategory/

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.

1 Answer
1

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

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *