 <pre><code>RewriteCond %{HTTP_HOST} !^admin\.example.com$ [OR] RewriteCond %{HTTP_HOST} !^login\.example.com$ [OR] RewriteCond %{HTTP_HOST} !^logout\.example.com$ RewriteCond %{HTTP_HOST} -(.{5})\.example.com RewriteRule (.*) http://example.com/something/maybesomethingelse/-%1 </code></pre> <p>I did not test it but I think it works!let me know if not!</p>