2011-02-15 46 views

回答

5
RewriteCond %{HTTP_HOST} ^xyz\.domain\.com$ 
RewriteRule ^/(.*) http://domain.com/$1 [redirect,last] 
+0

这不起作用给内部服务器错误 – 2011-02-15 16:00:12

0

重定向一个子目录到域的最简单的方法:

RedirectMatch 301 ^/subdir/$ http://example.com$1