I have a standard page setup at http:// mysite.com/mypage/

I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:

http://mysite.com/mypage/helloworld/   <-- Currently shows "Not Found"

And translates it into:

http://mysite.com/mypage/?var=helloworld  <-- Currently shows the standard page