Forum Moderators: phranque
This Rewrite code always worked without a flaw.
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/feed_(.*)_(.*)\.shtml$ http://rss.example.com/rss.cgi?action=view_one_feed&fid=$1&catID=$2
It still redirects, but now rather than showing the static url in the browser, it shows the changed dynamic one.
What am I missing? Any help would be appreciated.
[edited by: jdMorgan at 12:38 am (utc) on April 19, 2006]
[edit reason] de-linked, examplified. [/edit]
If you're looking for an internal rewrite, remove the "http://rss.example.com" part of the substitution URL.
If your feed URLs are always of the form "/feed_<something>_<something>.shtml", where <something> never contains an additional underscore, then the following code should be noticably faster to process:
RewriteRule ^/feed_([^_]+)_([^.]+)\.shtml$ /rss.cgi?action=view_one_feed&fid=$1&catID=$2 [L]