Welcome to WebmasterWorld Guest from 126.96.36.199
and what if i don't want rewrite the URL, but want to redirect all traffic from sub domain to sub directory via 301 redirect
means from [forum.example.com...]
[edited by: jdMorgan at 2:51 pm (utc) on Jan. 31, 2009]
This would be sort of like redirecting www.example.com/ to www.example.com/www/user-name/public/html/index.php just because that is the real path in the server's filesystem where the home page of the site is located. There is no reason to do this. Don't do this. Just rewrite subdomain requests to the proper place where the server should get the files, and don't tell the client at all.
The whole point of an internal rewrite is that the URL and the filepath are two different things, and don't even need to resemble each other. Web clients care about URLs, not filepaths.