Skip to content

How do I redirect old event URLs after leaving The Events Calendar?

Coursehall remembers the address of every event and series during the import from The Events Calendar and redirects it to its course page with a 301 once you turn the switch on. It comes with the free version and works only after The Events Calendar is switched off; from 1.2 Coursehall leads venue and organizer addresses to the page you choose for the calendar archive, but only if the import remembered them with 1.2.

What you need for it.

Coursehall, free

The free version runs on WordPress 6.5 or later and PHP 8.3 or later.

The import from The Events Calendar

Only addresses the import remembered redirect. A switch without the import leaves no remembered addresses.

Published courses

An address whose course is deleted or not published stays a 404.

You set up the redirects in four steps.

Everything happens under Coursehall, Import.

  1. Run the import

    The import remembers the address of each event and series together with its course. A recurring event with a date in its address counts as its event. From 1.2 it also remembers the addresses of published venues and organizers.

  2. Check the list

    Under Import, Redirect old addresses, you see the number of remembered addresses and a table of old address and target, the first 50 written out.

  3. Target for the calendar archive

    For the archive of The Events Calendar, such as /events/, choose a page, for example the one with the list of all sessions. Everything under that address goes there, from 1.2 also the remembered venue and organizer addresses.

  4. Turn the switch on

    Switch on "Redirect old addresses" and save. Once The Events Calendar is off and an old address would otherwise return a 404, it leads to its target with a 301. If the calendar subscription is on, /events/?ical=1 also leads to the new subscription with a 301.

What the redirect cannot do.

While The Events Calendar runs

As long as the old page still answers, nothing redirects. Coursehall steps in only where WordPress would otherwise return a 404.

Venues and organizers

The import remembers these addresses only from Coursehall 1.2, and only while their entries are still in the database, so before you delete The Events Calendar. Their target is the page of the calendar archive, not a course page; without a chosen page they stay a 404. On a course site in Switzerland that switched with 1.1.0, they answered with a 404 while 41 remembered addresses redirected.

The old calendar subscription

The address /events/?ical=1 leads to the new calendar subscription only when redirects, the list of all sessions and the subscription are switched on; otherwise it leads to no calendar. On the same course site it returned the HTML page instead of sessions under 1.1.0.

Addresses without the import

Events that were never imported have no remembered address. The whole switch is described on the switching page. The live demo shows what a course page looks like as a target.

Read more