mod_rewrite help?

Does anybody have an example of a simple mod_rewrite snippet that would do this:

1. user types: http://domain.com/users/username/

2. apache/mod_rewrite displays http://domain.com/~username

3. user continues to see /users/username/ and does not simply get redirected back to ~username

Any help much appreciated! I've checked the docs but cannot wrap my head around mod_rewrite just yet, amazing stuff.

 

 

 

 

Top