Mod rewrite remove 'home/cities/' form url

Hey Guys,

I’m developing a site in codeigniter, which is a PHP MVC framework, that uses a controller mapped URI method. i.e. example.com/controller/function/data/data

I’m looking for a way to mod_rewrite my urls from this: example.com/home/cities/San-Diego

to this: example.com/San-Diego

Is this possible?

I have a table of 30k cities which I have homepages for, and it would be a lot cleaner to remove /home/cities from the url.

Thanks for any help with this.

Something like:
RewriteRule ^/home/cities/(.*) http://mydomain.com/$1

should do the trick, no?