【发布时间】:2014-01-10 11:24:50
【问题描述】:
我有一个非常简单的 Nginx 重写规则:
rewrite (*UTF8)^/([\pL\pN\/-]*)$ /index.php?route=$1;
它使用 Perl 反斜杠序列来匹配所有 unicode 字母和数字。
我试图在 Apache 上重现它:
RewriteRule ^([\pL\pN\/-]*)$ /index.php?route=$1 [QSA,L]
但是它只匹配斜线和破折号。错误日志是干净的。
【问题讨论】:
标签: regex perl apache .htaccess mod-rewrite