Hi,
I have a problem with mod rewrite. What i need to do is basicly to hide a folder from the URL. Now the following code works, as long as I work in the root folder:
RewriteCond %{REQUEST_URI} !v2/
RewriteCond %{DOCUMENT_ROOT}/v2%{REQUEST_URI} -f
RewriteRule .? v2%{REQUEST_URI} [L]
This means that if i go www.mysite.com/fileInv2.php then in reality i get the file www.mysite.com/v2/fileInv2.php
Which is great. However, what I need to do now, is to do it in a sub folder. What I got is this:
www.mysite.com/farms/v2/fileInv2.php
which should be converted into:
www.mysite.com/farms/fileInv2.php
However, I cannot get this to work (placing the .htaccess file inside of the farms folder).
Your help is much appreciated!