I've been trying to get some RewriteRules working and am successful when just using for one host, but not multiple.
I'm wanting "http://preview.domain.com" to point to "http://preview.domain.com/dir1" or "http://preview.domain.com/dir2", etc. Dir1 and Dir2 are as they contain a ProxyPass that points to the real domain. Here is what I have currently :
RewriteCond %{REQUEST_URI} !/dir1
RewriteRule ^(.*)$ /dir$1 [R]
<Location /dir1>
ProxyPass http://dir1.com
</Location>
I can't get the dir2 Rules to work beside the ones above. I am wanting to make this dynamic if possible as their are about 70 folders and growing. "http://preview.domain.com" is essentially a domain to point to my dev server to show dev content instead of prod content without having to modify the website code. Could anyone provide help?