How can i implement wordpress like url rewrite logic ,
if some one adds /feed/
at the end of any url then it should forward all get parameters to specific page .,
i tried doing something like this
RewriteRule ^feed/?$ rss.php [L]
RewriteRule ^feed/?$ rss.php [QSA,L]
and tried catching data like
rss.php
<?php
print_r($_GET);
?>
but it keep refreshing the current page where the link is placed.
e.g. this
domain.com/browse/flowers/feed/
go to
domain.com/rss.php?category=flowers&feed=on