I need to create a following rule to place in my .htaccess
- For each request i'd like to execute file/path in subfolder subdir.
- If the file doesn't exist there then i'd like to forward this request to index.php
Let say that .htaccess iw placed at http://domain/folder
When the user opens url http://domain/folder/Subfolder/xxx.html he should recieve file from http://domain/folder/subdir/Subfolder/xxx.html
So these rules have to consider the fact that there are subfolders inside subdir. (Different structures of subfolders :-) And only if the path under subdir doesn't exist the request should be forwarded to index.php
Plase help :)
ps This is a followup question to my previous one. It is quite different and includes the fact that there are subfolders inside subdir. -> mod_rewrite: How to search in local folder, subfolder and then redirect to index.php