Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php htaccess重定向中的Umlauts_Php_Apache_.htaccess_Redirect - Fatal编程技术网

Php htaccess重定向中的Umlauts

Php htaccess重定向中的Umlauts,php,apache,.htaccess,redirect,Php,Apache,.htaccess,Redirect,由于umlauts,以下htaccess规则不起作用 Redirect 301 /xyz/händedruck.html /new/händedruck.html 如何修改此重定向以使其正常工作?尝试使用编码URL:/xyz/h%C3%A4ndedruck.html 要在PHP中获取此字符串,可以使用urlencode函数 也有很多网站可以为你做URL编码。例如:您将.htaccess文件保存在哪种编码中?您可能应该添加一些关于如何将ä转换为%C3%A4的信息。此处的链接可能也很有用。但还有

由于umlauts,以下htaccess规则不起作用

Redirect 301 /xyz/händedruck.html  /new/händedruck.html

如何修改此重定向以使其正常工作?

尝试使用编码URL:
/xyz/h%C3%A4ndedruck.html

要在PHP中获取此字符串,可以使用
urlencode
函数


也有很多网站可以为你做URL编码。例如:

您将
.htaccess
文件保存在哪种编码中?您可能应该添加一些关于如何将
ä
转换为
%C3%A4
的信息。此处的链接可能也很有用。但还有一个问题:现在他重定向到正确的url,但他没有检测到带有umlauts的url。例如:当我转到url时,他没有检测到以下规则:重定向301/h%C3%A4ndedrick.html/new/h%C3%A4ndedrick.html