|
Posted by Rik Wasmus on 10/27/07 21:06
On Sat, 27 Oct 2007 21:58:25 +0200, Kevin Blount <kevin.blount@gmail.com>
wrote:
> On Oct 27, 2:43 am, AnrDaemon <anrdae...@freemail.ru> wrote:
>> Greetings, Kevin Blount.
>> In reply to Your message dated Saturday, October 27, 2007, 01:39:14,
>>
>> KB> AddType application/x-httpd-php .png
>>
>> Useless.
>>
>> KB> RewriteEngine On
>> KB> RewriteRule .png /phpsigs/create-sig.php
>>
>> You forgot [QSA] flag. (Query String Append)
>>
>> So,
>>
>> RewriteEngine On
>> RewriteRule \.png$ /phpsigs/create-sig.php [QSA,L]
>>
>> KB> basically just redirects all .PNG requests to a single PHP script, I
>> KB> can then grab the file name, etc and personalize the image being
>> KB> returned.
>>
>
> I did lose the AddType in the end, but didn't know about [QSA,L] -
> what does that do? seems to work ok without it, but would be good to
> know what it's for.
Hmm, you'd think when doing rewrites one would consult the manual.
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule
See 'Flags'.
--
Rik Wasmus
[Back to original message]
|