title: Conditional URL Rewrites in WordPress
body: <p>I'm hosting an event and using WordPress to manage the site. We have a separate table (not WP user table) of attendees and I'd like for each of them to have a page on our site:</p>
  
  <p>example.com/user1, example.com/user2, etc. </p>
  
  <p>I've been reading up about WP_Rewrite but am a bit confused about how to conditionally redirect if the user exists, otherwise go about the normal flow.</p>
  
  <p>Any help in achieving this would be much appreciated, thank you!</p>
  
  <p>Edit:</p>
  
  <p>There is a single one-off page that I'm trying to forward to. Right now, it's accessed with:</p>
  
  <p>example.com/user?username=user1</p>