The idea is this.
Whatever URL comes in in the form of
http://internal.domain/spamable/(anything).flv, i want to actually respond with data, without sending a redirect.
The reason for doing it is an internal project needs to be able to call out for a theoretically infinite number of unique filenames (1.flv, 2.flv, etc etc etc) and not get served a 404, or 30X, but a 200.
the content itself is unimportant (not a valid FLV), just that -some- data is sent back in a 200 message. (The test here is of an intermediary streaming server, that will be HTTP-GET'ing content from this directory as a remote source)
Ah! Specificity!
Try:
Code:
# .htaccess in DocumentRoot
RewriteRule ^spamable/([^/]+)\.flv$ index.php?id=$1 [L]
Your FollowSymLinks will already be in the httpd.conf, the RewriteBase only confuses the target (and redirection) and the query string is clearly not needed (and is not used in your code) - even as an exclusion.
Until you're happy with the redirection, you should change the flag to [R=301,L] so you can see the redirection but remove the R=301 and comma before going live (because you want to hide the index.php serving the response).
Bookmarks