- Code: Select all
RewriteRule ^feed$ index.php?mode=XML&request=$0 [QSA,L]
To sum it up, when someone goes to domain.ext/feed, PHP gets told to go into XML mode. This works fine and dandy. However, I am having trouble getting extra info through in the URL.
For example, I might want to do domain.ext/feed/last-month. However, I don't know how to get this to work without also making PHP think it should go to XML mode when the url is domain.ext/feed/
- Code: Select all
RewriteRule ^feed/(.+)$ index.php?mode=XML&request=$0 [QSA,L]
I could do the above, but I don't want the rule to work when feed is trailed with a slash (directory).