1

需要您的帮助,我在 htaccess 文件中添加了以下规则,不确定为什么它没有执行,您可以检查并让我们知道是否有任何问题

Redirect 301 /product/rose-elliot%E2%80%99s-__060727.aspx http://www.website.co.uk/ahhgh.html

Redirect 301 /abc/%20/index.php/customer/account/login/ https://www.website.co.uk/customer/account/login/
4

1 回答 1

1

URI 在通过 URL 文件映射处理管道发送之前被解码。所以你需要对%'s 进行转义:

Redirect 301 "/product/abcd.aspx" http://www.website.co.uk/abcd.html

Redirect 301 "/abcd/ /index.php/customer/account/login/" https://www.website.co.uk/customer/account/login/

您需要确保您使用的是支持 unicode 的文本编辑器。

于 2012-10-06T06:55:26.147 回答