如何获取mod重写以更改URL符号以用于显示目的?

Good day all,

Ive been wondering, google searching and goign greyer quicker thinking if it is possible for mod rewrite to change a specific symbol it grabs from the url to something else?

i.e. if the url is www.website.com/foo-bar using the rewriterule I can get that hyphen to become a forward slash?

<?php $foobar = "foo-bar"; ?>

<a href="/<?php echo $foobar; ?>">foo-bar</a>

.htacces code I have..

RewriteRule ^([^/]+)$        index.php?page=$1 [L]

So basically I would like mod rewrite to make the url display on the addressbar as www.website.com/foo/bar if possible?

Regards,

Dan.