RewriteEngine on
RewriteCond %{HTTP_HOST} ^phpmyadmin.blue.cat$
RewriteCond %{REQUEST_URI} !^/web/php/phpMyAdmin/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /web/php/phpMyAdmin/$1
RewriteCond %{HTTP_HOST} ^phpmyadmin.blue.cat$
RewriteRule ^(/)?$ /web/php/phpMyAdmin/index.php [L]
RewriteCond %{HTTP_HOST} ^msg.blue.cat$
RewriteCond %{REQUEST_URI} !^/web/php/msg/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /web/php/msg/$1
RewriteCond %{HTTP_HOST} ^msg.blue.cat$
RewriteRule ^(/)?$ /web/php/msg/index.php [L]