【发布时间】:2021-04-27 14:27:18
【问题描述】:
我希望将旧网站重定向到新网站,网址如下所示:https://test.fr/directory/homepage.html
在我的 .htaccess 文件中,我有:
RedirectPermanent / https://google.com/`
但它的作用:https://google.com/directory/homepage.html
我想重定向到https://google.com/ 并删除.com/ 之后的所有内容,但我不知道怎么做。
【问题讨论】:
-
请在您的问题中分享您的 htaccess 规则文件,谢谢。