redirect整个域

我想退出整个领域,因为我们正在走出一个市场。

www.ourcompany.no www.ourcompany.no/any-url/ 

等应该都redirect到简单

 www.ourcompany.se 

没有任何拖尾的url,或者可能类似的东西

 www.ourcompany.se/to-our-norwegian-costumers/ 

我试过了

 Redirect permanent / http://www.ourcompany.se/ 

但结果是所有的URL都被保留了path和查询string,正是我不想要的!

改用RedirectMatch ,因为你可以避免保留path:

 RedirectMatch permanent . http://www.ourcompany.se/