Ad

URL Rewrite /foobar/rss To Rss.php?username=foobar

- 1 answer

I already use URL Rewriting to rewrite /foobar to index.php?username=foobar using:

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

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

Ad

Answer

This is how it's done:

RewriteRule ^([^/]+)/rss$ /rss.php?username=$1 [QSA,L]
Ad
source: stackoverflow.com
Ad