| 
	
 | 
 Posted by Kevin Blount on 10/27/07 19:58 
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. 
> 
> -- 
> Sincerely Yours, AnrDaemon <anrdae...@freemail.ru> 
 
Thanks both. 
 
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. 
 
Cheers
 
  
Navigation:
[Reply to this message] 
 |