【发布时间】:2021-04-10 19:18:37
【问题描述】:
我需要使用 htaccess 将我的 old-domain.com 重定向到 new-domain.com
新域名有不同的url
old-domain.com/aboutus.html 到 new-domain.com/us.html
old-domain.com/contact-us.html 到 new-domain.com/form.html
..... .....
所有其他页面 old-domain.com/xxxxxxxxxxx 重定向到主页 new-domain.com
谢谢
【问题讨论】:
-
欢迎来到 SO,请在您的问题中添加您尝试过的 htaccess 规则文件,谢谢。
标签: apache .htaccess redirect mod-rewrite seo