apache - (Apache) 可以在重写规则中匹配 UTF8 字符吗?

标签 apache mod-rewrite

我知道可以创建以 UTF8 字符编码的链接,但是否可以在重写规则中实际匹配这些字符?示例只是将 utf8 西里尔俄语文本中的静态页面重写为其他页面。

最佳答案

是的,这是可能的:

RewriteRule ^de/b\xC3\xA4ume$ en/trees [L]

这将匹配 /de/bäume 并将其重写为 /en/trees

关于apache - (Apache) 可以在重写规则中匹配 UTF8 字符吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1211685/

相关文章:

.htaccess - 将特定页面重定向到另一个域

apache - 在 apache 2.4.x 上配置 mod_proxy_wstunnel

apache - HTTP 下载时间

php - 将 URL 重写为动态页面

wordpress - 如何在 apache 中为 WordPress json API v1 和 v2 重写规则

.htaccess - StackOverflow 中的 301 重定向。它是如何运作的?

apache - Apache 反向代理后面的 JBoss 服务器和 CouchDB 服务器

php - php负载均衡

apache - 使用 .htaccess 重写规则重定向到我服务器上的不同文件夹

php - 通过 mod_rewrite 在 URLS 中使用 - 并查询 Mysql 数据库