Hi folks,

I'm trying using the following rule without success and nobody could help me so far:

RewriteCond %{DOCUMENT_ROOT}/apps/%{HTTP_HOST}/$1 -f
RewriteCond %{DOCUMENT_ROOT}/apps/%{HTTP_HOST}/$1 -d
RewriteRule ^(.*)$ /apps/%{HTTP_HOST}/$1 [L]
My folder structure is: /apps/[DOMAIN.COM]/ that's why i need %{HTTP_HOST} there.
Example file: domain.com/apps/domain.com/file.jpg
Want to reach this as: domain.com/file.jpg but it seems like it's jumping over the rule but the file exists...