一個新的領域可以說我有3個領域:的老域名重定向舊路徑到一個新的路徑與Apache
oldsite.com
anotheroldsite.com
和
newsite.com
我需要將舊域中的特定URL重定向到新域中的特定路徑。如:
oldsite.com/potato => www.newsite.com/how-about-a/potato
www.oldsite.com/potato => www.newsite.com/how-about-a/馬鈴薯
和 anotheroldsite.com/products => www.newsite.com/sub-dir-before/products www.anotheroldsite.com/products => www.newsite.com/sub-dir-before/products
最後,我需要所有不匹配的請求嘗試www.newsite.com/$1
我已經花了最後一小時的更好的一部分尋找最好的方法來做到這一點,但我似乎無法F可以查看任何使用完全不同路徑查看舊域和新域的示例。
重要:所有域名A記錄指向的IP爲newsite.com