title: Rewrite URL relative to current directory
body: <p>I have a directory: /test, in that directory I have a file called World.txt. And a .htaccess file that's in the /test directory.</p>
  
  <p>When the user goes to <a href="http://example.com/test/Hello.txt" rel="nofollow">http://example.com/test/Hello.txt</a> they should be redirected to <a href="http://example.com/test/World.txt" rel="nofollow">http://example.com/test/World.txt</a></p>
  
  <p>So I put this in the .htaccess file:</p>
  
  <p>RewriteRule Hello.txt World.txt</p>
  
  <p>This doesn't work, I think it is doing <a href="http://example.com/test/Hello.txt" rel="nofollow">http://example.com/test/Hello.txt</a> -> <a href="http://example.com/World.txt" rel="nofollow">http://example.com/World.txt</a></p>
  
  <p>As if I try:</p>
  
  <p>RewriteRule Hello.txt /test/World.txt</p>
  
  <p>It works, however this means if I rename the test directory, I have to remember to change the rewrite rule.</p>
  
  <p>Is there a flag or something that makes the redirect path relative to the current directory?</p>