My rewrite file looks like the following...
Code:
RewriteEngine On
RewriteRule ^images(.*)$ images$1 [S=1]
RewriteRule ^(.*)/$ ?path=$1 [L,NS,QSA]
Just so you know, this rewrites EVERYTHING. The rewrite rule for images marks the image folder as being directed to that folder (and then skipping the following rule, so it doesn't run into the other rewrite). This way everything is passed into your CMS and it can handle everything for you.
I then wrote a custom CMS solution for the site that could then parse $_GET['path'] and return the appropriate page...