Mod_rewrite in two directions?
===

An existing page is called `/foo/bar.php`. What I have done is a rewrite so that when a user types `/foobar`, it load the contents of `/foo/bar.php` (while keeping `/foobar` in the url bar)

But I also want the opposite - when a user clicks on a link or types `/foo/bar.php`, I want to have `/foobar` in the url. The reason is to avoid manually changing all the links.

How could I do that (if possible without an http redirect, but via some rewrite magic)? And is it possible for those two rules to co-exist?


Thanks,

John