2017-02-27 65 views
1

我想我的网站www.example.com的不仅仅是根重定向到www.example2.com 但不是子文件夹www.example.com/subfolder! 这可能吗?重定向根而不是子文件夹

E.G. 以下规则重定向我的网站:

Redirect 301/http://www.example2.com 

回答

1

重定向不仅仅是根,你可以使用下面的

RedirectMatch 301 ^/$ http://example2.com/ 
相关问题