【发布时间】:2012-11-09 11:05:29
【问题描述】:
我有一个 www.amunzi.com/profile.php?username=anyusername 的重写规则
> RewriteRule ^([a-zA-Z0-9\._-]+[^.php])$ profile.php?username=$1
> RewriteRule ^([a-zA-Z0-9\._-]+[^.php])/()$ profile.php?username=$1
它工作正常,但问题是当用户名以字母“h”结尾时,它会给出 404 错误。
【问题讨论】:
-
我不认为“以 h 结尾的用户名”是确切的规则。你需要更多的测试用例。你的测试用例是什么?
标签: .htaccess