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 :
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.
Try adding the following to the
.htaccessfile in the root directory of your site.