1RewriteEngine on
2RewriteBase /{farm}
3
4RewriteCond %{REQUEST_URI} ^/?$
5RewriteRule .* {farmer} [QSA,R,L]
6
7RewriteCond %{REQUEST_URI} !^{farmer}?
8RewriteCond %{REQUEST_URI} !^{barn}?
9RewriteCond %{REQUEST_URI} !^farm.wsdl
10RewriteRule (.*) {barn}$1 [QSA,L]
11