带法语重音符号的URL重定向

时间:2018-06-05 18:52:37

标签: regex apache .htaccess redirect mod-rewrite

我有以下规则不起作用。我知道这是因为法国口音。

RewriteCond %{REQUEST_URI} ^\/content\/dam\/gemco\/documents\/press\-releases\/2018\/Greea\-Eats\%20Mancolife\%20annonce\%20l\&rsquo\émission\%20d\&rsquoobligations\%20non\%20garanties\.pdf$
RewriteRule .* https://%{HTTP_HOST}/who-we-are/code-of-conduct.html [R=301,L]

我不确定,但我相信它与& rsquo有关,这相当于' (法国口音)

这是旧网址

/content/dam/gemco/documents/press-releases/2018/Greea-Eats%20Mancolife%20annonce%20l’émission%20d’obligations%20non%20garanties.pdf

如何使用以下字符代码将其添加到我的规则中:"& rsquo"

0 个答案:

没有答案