RewriteRule ^hello/(.*)$ http://hello.mydomain.com/$1 [R=3-1,L,QSA]Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain1.example.com$
RewriteRule ^(.*)$ http://subdomain2.example.com/$1 [R=permanent,L]RewriteRule ^hello(.*)$ http://hello.mydomain.com [R=301,L]
RewriteRule ^hello/(.*)$ http://hello.mydomain.com/$1 [R=301,L]You are not logged in, either login or create an account to post comments
Also, this might be something worth asking at Stack Overflow.
My thought is that this rule should do it if placed in .htaccess in [www.mydomain.com DocumentRoot]/hello:
RewriteRule $1 http://hello.mydomain.com/$1 [R,QSA]posted by mkb at 11:42 AM on March 18