Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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
.htaccess 替换URL中的字符_.htaccess - Fatal编程技术网

.htaccess 替换URL中的字符

.htaccess 替换URL中的字符,.htaccess,.htaccess,输入: 我想用“e”替换“è”,用“a”替换“a” 因此,输出如下: 我什么都试过了,但还是不能解决这个问题 有没有办法通过编辑.htaccess文件来解决此问题?您可以在javascript中安装lodash,并使用deburr方法将拉丁语-1增补版和拉丁语扩展-a字母转换为基本拉丁语字母,并删除组合变音符号 Lodash也适用于执行各种其他操作。你应该试试 const str=u.deburr(“https://example.com/?s=tèstèa&postèu type=产品

输入:

我想用“e”替换“è”,用“a”替换“a”

因此,输出如下:

我什么都试过了,但还是不能解决这个问题


有没有办法通过编辑.htaccess文件来解决此问题?

您可以在javascript中安装
lodash
,并使用
deburr
方法将拉丁语-1增补版拉丁语扩展-a字母转换为基本拉丁语字母,并删除组合变音符号

Lodash也适用于执行各种其他操作。你应该试试

const str=u.deburr(“https://example.com/?s=tèstèa&postèu type=产品);
console.log(str)

你的问题是什么?