以下 htaccess 规则因元音变音而不起作用。
Redirect 301 /xyz/händedruck.html /new/händedruck.html
如何修改此重定向以使其有效?
最佳答案
尝试使用编码的 URL:/xyz/h%C3%A4ndedruck.html
要在 PHP 中获取此字符串,您可以使用 urlencode
函数。
也有很多网站可以为你做urlencoding。例如:http://meyerweb.com/eric/tools/dencoder/
关于php - htaccess 重定向中的元音变音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11107375/