title: Implementing simple dynamic routes in Wordpress
body: <p>Suppose I have a clean wordpress install, with a basic custom theme.</p>
  
  <p>In that theme, I have a custom page template which is just an iframe, which is pointed at a webapp on a different domain. </p>
  
  <p>So suppose my wordpress install can be reached at <a href="http://example.com" rel="nofollow">http://example.com</a>, and my page with the iframe template is located at <a href="http://example.com/members/" rel="nofollow">http://example.com/members/</a>. </p>
  
  <p>I now want to add dynamic routes, so that all requests to <a href="http://example.com/members/login" rel="nofollow">http://example.com/members/login</a>, or <a href="http://example.com/members/event/1" rel="nofollow">http://example.com/members/event/1</a> (for example) all go to <a href="http://example.com/members/" rel="nofollow">http://example.com/members/</a> but pass the second part of the route ('/login', or '/event/1') to the iframe inside. </p>
  
  <p>What would be the best way to accomplish this, without having to hack into Wordpress' internals? </p>
  
  <p>I found this plugin: <a href="https://wordpress.org/plugins/wp-on-routes/" rel="nofollow">https://wordpress.org/plugins/wp-on-routes/</a> but much to my dismay I discovered that when I tried using it it completely overwrites Wordpress' built in routing, which meant I would have to manually re-add each and every URL (as I understand it, I'm not that accomplished in PHP), which is a no go as my client still needs to be able to post without manually editing php files. </p>
  
  <p>Thank you for reading.</p>