Seeing the URL rejected by mod_rewrite
Posted on 2011-10-08
I'm trying to use mod_rewrite statements in .htaccess to block access to a directory of mp3 files. But the Rewrite_cond statement I have is also blocking the accesses made by an embedded QuickTime player I have on a page in the directory. It would be easier to craft a Rewrite_cond statement that would let the player requests through and block browser accesses if I knew what the request from the player looked like at the server. When you put a URL in a browser to access the files the mod_rewrite failure gives you back an error that shows the failing URL, but when the player makes the access it gets back the failure and then just refuses to come up, without saying anything. Is there any way I can get Apache to show me the URL from the player that it's rejecting?
Thanks for any ideas.