httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Trutwin <j...@trutwins.homeip.net>
Subject [users@httpd] RewriteRule with .flv extension
Date Wed, 08 Apr 2009 16:19:05 GMT
I'm dealing with something odd and I can't figure out what to make of
it - I have the following rewrite rule:

RewriteRule
^([0-9]+)/([a-z0-9]+)/get_flash\.php$ /get_file.php?id=$1&flash=1&key=$2
[L]

then a URL liks this /123/2313412sdfsdf/get_flash.php works fine.

BUT if I change my rule to this (swapping .php for .flv):

RewriteRule
^([0-9]+)/([a-z0-9]+)/get_flash\.flv$ /get_file.php?id=$1&flash=1&key=$2
[L]

a URL like this: /123/2313412sdfsdf/get_flash.flv does NOT work. 

I turned on the rewrite log and for the .flv the URI it's checking is
always ''.  For .php it's 123/2313412sdfsdf/get_flash.php.  If I
clear the rewrite log and run the .flv URL/Rewrite 2313412sdfsdf is
not even in the rewrite log, but if I change to .php in Rewrite and
run the .php URL, 2313412sdfsdf is in the log - I don't get why a
simple extension change causes this.  "flv" is not in the apache conf
directory anywhere.

Any suggestions?  I'm stumped and need a .flv URL extension for a
dumb flash app to work.....

Apache 2.2.3-4+etch6

Thanks,

Josh

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message