Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试过了,但它不起作用。
RewriteRule ^([a-zA-Z0-9]{1,24})$ poem.php?id=$1 [L,NC]
(有人编辑了这个,它在队列中弹出;不妨给它一个答案。)
该[L]标志表明这是最后一条规则,不应再处理更多规则。结果他的下一条规则没有得到处理。
[L]
正确的设置应该是:
RewriteRule ^([a-zA-Z0-9]{1,24})$ poem.php?id=$1 [NC] RewriteRule ^(.*)$ profile.php?membername=$1 [L]