Reply to Re: Trouble with AddType application/x-httpd-php .png

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация