Automatically Redirect Outdated Event Instance URLs

Home Forums Calendar Products Events Calendar PRO Automatically Redirect Outdated Event Instance URLs

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1486995
    Kenn
    Participant

    Past event URLs are coming up as 404s on the site (which is really annoying since they show up in Google search results – they were indexed *before* the event expired). Instead of having to manually create redirects, is there a way that the plugin can automatically redirect URLs for previous events to that event’s main page?

    Example:

    /event/show-name/2018-03-01/ would automatically redirect to the show’s main page (or where ever we wanted the redirect to go… that way, we could set it and forget it).

    Thanks!

    #1488270
    Jennifer
    Keymaster

    Hi Kenn,

    Thanks for reaching out!

    There is not currently any built-in functionality to automatically redirect past events, but you could do it via a customization. Our themer’s guide is the place to start if you’d like to give this a shot! Our list of functions might also be helpful. I would take a look at tribe_is_past_event() and wp_redirect() as a staring point. If you would like to have the code done for you, we also have a list of recommended developers.

    If this is a feature you would like to see added in the future, we’d love it if you could post the idea in our Feature Ideas Forum! We use it to gauge user interest in new features and help plan future development.

    <i>However</i>, past events should not return 404s just because they have passed. By default, the only thing that really changes on the event page once the event has passed is that a notice appears indicating that the event is in the past (see this example from our demo site wpshindig.com). Are you using a plugin or another method to automatically remove past events or set them to draft status?

    #1508280
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Automatically Redirect Outdated Event Instance URLs’ is closed to new replies.