You are here: Re: Trouble with AddType application/x-httpd-php .png « PHP Programming Language « IT news, forums, messages
Re: Trouble with AddType application/x-httpd-php .png

Posted by Jerry Stuckle on 10/27/07 21:04

Kevin Blount 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.
>>
>> --
>> 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
>
>

Try alt.apache.configuration. They can show you the correct way to do it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this 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

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