mod_rewrite check directory rule
I have a url for ex : example.com/site/anyFolderName and i want to remap it to example.com/site/myfolder/anyFolderName but only go there if 'anyFolderName' folder exists.I've searched in a few places for this but can't really figure it out.

Here's what i found out so far :

http://stackoverflow.com/questions/6115775/rewrite-condition-to-compare-top-level-directory-from-request-uri - very similar with what i need but i have 2 levels

http://httpd.apache.org/docs/2.2/rewrite/remapping.html #Search for pages in more than one directory

Thank you.

mod_rewrite check directory rule
===

I have a url for ex : example.com/site/anyFolderName and i want to remap it to example.com/site/myfolder/anyFolderName but only go there if 'anyFolderName' folder exists.I've searched in a few places for this but can't really figure it out.

Here's what i found out so far :

http://stackoverflow.com/questions/6115775/rewrite-condition-to-compare-top-level-directory-from-request-uri - very similar with what i need but i have 2 levels

http://httpd.apache.org/docs/2.2/rewrite/remapping.html #Search for pages in more than one directory

Thank you.
