Title: Regular expression for not-found strings
Last modified: December 20, 2019

---

# Regular expression for not-found strings

 *  Resolved [Sea Jay](https://wordpress.org/support/users/jcollier/)
 * (@jcollier)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/regular-expression-for-not-found-strings/)
 * We have a custom post type for events. Once an event has passed, the post changes
   to a draft, and the URL is no longer active. However, other events continue to
   be published. This is the structure of the URL:
 * `https://www.mcht.org/trips-events/[slug]`
 * Here’s an example of an event that is no longer live, but has been linked on 
   an external webpage:
 * [https://www.mcht.org/trips-events/2019-08-17-clark-island-open-house](https://www.mcht.org/trips-events/2019-08-17-clark-island-open-house)
 * Is it possible to redirect an event URL slug when it is no longer found, but 
   ignore published URLs at that level?
 * TIA!
    -  This topic was modified 6 years, 4 months ago by [Sea Jay](https://wordpress.org/support/users/jcollier/).
    -  This topic was modified 6 years, 4 months ago by [Sea Jay](https://wordpress.org/support/users/jcollier/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/regular-expression-for-not-found-strings/#post-12260253)
 * You can use a ‘URL and page type’ to match missing pages in that directory:
 * [https://redirection.me/support/matching-redirects/](https://redirection.me/support/matching-redirects/)
 *  Thread Starter [Sea Jay](https://wordpress.org/support/users/jcollier/)
 * (@jcollier)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/regular-expression-for-not-found-strings/#post-12260743)
 * Thank you, John!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Regular expression for not-found strings’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sea Jay](https://wordpress.org/support/users/jcollier/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/regular-expression-for-not-found-strings/#post-12260743)
 * Status: resolved