2017-02-27 67 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/ 
相關問題