Apache的mod_rewrite域到子域?

我有这个地址http://www.example.com ,有这个网页http://www.example.com/world 。 我可以用mod_rewrite来做到这一点,我的网页成为http://world.example.com ? 任何链接,教程,…,会很好,如果我能做到这一点? 这些链接将会是什么样的例子:

http://www.example.com/world/some-other-page http://www.example.com/world/and-second-apge 

这些链接是否也会被重写为:

  http://world.example.com/some-other-page http://world.example.com/and-second-apge 

另一个问题,这是好的SEO?

对不起我英文不好。

尝试这个:

 RewriteEngine On RewriteCond %{http_host} ^domain.com [nc] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,NC] RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC] RewriteRule ^world/([a-z0-9\-_\.]+)/?(.*)$ http://$1.domain.com/$2 [QSA,NC,R,L] 

所以:

 http://www.domain.com/world/page => http://world.domain.com/page