This is what I want to accomplish in pseudocode:
if server.host equals 'productionsite.com' then
RewriteBase /
else if server.host equals 'stagingsite.com' then
RewriteBase /staging/mysite
else if server.host equals 'localhost' or server.host equals '127.0.0.1' then
Rewrite /dev/mysite
However, this is what I actually have so far which doesn't seem to work as I expect:
RewriteCond %{HTTP_HOST} =productionsite.com
RewriteBase /
RewriteCond %{HTTP_HOST} =stagingsite.com
RewriteBase /staging/mysite
RewriteCond %{HTTP_HOST} =localhost
RewriteBase /dev/mysite
I appreciate any help I can get in advance.