dongyun7897 2014-07-28 20:22
浏览 99
已采纳

.htaccess中的重写规则 - 波斯语的正则表达式

I write a regular expression so that it works when using the term Persian.  I'm using the following code but the following code does not work.

RewriteRule ^test/([0-9]+)/([\u0600-\u06FF]+)/?$ test.php?id=$1&title=$2 [NC,L]
  • 写回答

1条回答 默认 最新

  • douchan6512 2014-07-28 22:08
    关注

    Why not just match for everything? I'm not sure the - character range works the way you're using it:

    RewriteRule ^test/([0-9]+)/(.+?)/?$ test.php?id=$1&title=$2 [NC,L]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?