开发者

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

开发者 https://www.devze.com 2023-02-15 21:28 出处:网络
I already use URL Rewriting to rewrite /foobar to index.php?username=foob开发者_Python百科ar using:

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

精彩评论

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