开发者

URL Rewrite /foobar/rss to rss.php?username=foobar

I already use URL Rewriting to rewrite /foobar to index.php?username=foob开发者_Python百科ar using:

RewriteRule ^([^/.]+)$ /index.php?username=$1 [QSA,L]

What should I add to also rewrite /foobar/rss to rss.php?username=foobar?


This is how it's done:

RewriteRule ^([^/]+)/rss$ /rss.php?username=$1 [QSA,L]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜