A client had an application at www.domain.com/dir. They have now set up a subdomain at dir.domain.com. The subdomain references the files stored at www.domain.com/dir. They'd now like people accessing www.domain.com/dir to be redirected to dir.domain.com.
I'm guessing I need a .htaccess to sit in www.domain.com/dir and if it's accessed via with www, redirect to the subdomain, just not sure of the syntax.