title: WordPress: How to create a rewrite rule for a file in a custom plugin
body: <p>I've been looking for hours trying to find a straightforward answer to this but I just can't seem to find anything out there which tackles this issue. There are numerous examples for rewriting standard URLs, but nothing in-terms of rewriting pages from within a custom plugin.</p>
  
  <p>I've created a custom plugin with a special directory in it called <code>test</code>. The test directory has several pages which are <code>blah.php</code> and <code>shmeh.php</code>. Is it possible to create rewrite rules to these pages i.e. <a href="http://example.com/blah" rel="nofollow">http://example.com/blah</a>, <a href="http://example.com/shmeh" rel="nofollow">http://example.com/shmeh</a></p>
  
  <p>Thank you very much for all the help.</p>