Hello All,
I'm using this in my htaccess:
RewriteCond $1 !^folder2/
RewriteCond %{HTTP_HOST} ^www\.domain2\.com
RewriteRule (.*)/folder2/$1 [L]
Is there any way to use a different condition based on the path accessed (and subsequent children) to route to the contents of the alternate folder?
For example, I want to use this script (or something similar) on several virtual sites that will share a common domain name.
I'd like www.domain1.com/website/one to point to /folder1 on the server and www.domain1.com/website/two to point to /folder2 on the server.
I've tried using the condition for REQUEST_URI but that didn't seem to work.