I have a tricky problem (for me at least).
I'm trying to rewrite
/ to a folder
/webroot/www. I have some simple code and it works:
RewriteRule ^$ /webroot/www/ [L]
However at the same time if the URL starts with
components, followed by anything else (ex.
foo, as in
foo is an actual directory that exists inside
components, I should rewrite to
How can I achieve that? I can't seem to figure it out.
I'm using Apache with .htaccess.