Forum Moderators: phranque
Try a search here for "subdomain subdirectory rewritecond http_host rewriterule" -- and for more background information (including how to get the best responses in this forum), see our forum charter [webmasterworld.com], the documents cited therein, and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
The concept is simple but apparently it's not so easy to do!
If you can reach your site at all using the subdomain, then it's not a DNS problem.
Please post your code as a basis for discussion, changing only the domain name to example.com, along with any other useful info about your situation, such as where you put the code.
Jim