【发布时间】:2009-09-14 17:18:07
【问题描述】:
我遇到了一个奇怪的问题,根据 Javascript(在 Chrome 中),我测试的所有字符串都与我为 RewriteRule 的正则表达式匹配,但并非所有字符串都正确重定向。
我的模式是(按此顺序):
ups/sections/([A-Za-z]{3})/([A-Za-z0-9_+.-]+)$
ups/([A-Za-z_+.-]+)$
我测试的文件是: (标有 + 表示重定向成功,- 表示不成功)
+ ups/sections/clr/0085.jpg
- ups/closer2_alt.pdf
+ ups/moondance_ten.pdf
+ ups/connick_mlo.pdf
- ups/jackson5_ten.pdf
【问题讨论】:
标签: regex apache mod-rewrite