Forum Moderators: phranque
This is a fairly common question -- Have you tried searching WebmasterWorld [webmasterworld.com] for "rewrite subdomain to subdirectory"?
Try that search, then post your best-effort code as a basis for discussion. Also, our Apache Library [webmasterworld.com] contains several tutorials, and our Apache Forum Charter [webmasterworld.com] includes several links to useful information, and some tips on how to get the most from this forum.
Thanks,
Jim
because my english is poor, may be i don't know the keywords or how to describe my problem.
hum, may be i describe my problem above had some wrong way with your answer, go into deep, the url:
www.example.com/blog means a method or not directory, it also be www.example.com/index.php/blog.