Hello all,

Even though this is not directly Symfony related, someone might have
had the same problem before...

On my site I initially store full images only, and generate thumbnails
on-the-fly, when first requested. Of course generated thumbnails are
cached.

I've been using something similar to the following example on Apache/
mod_rewrite in the .htaccess file:

RewriteRule ^/image/[^/] files/cached_images/$1
...
RewriteCond %{REQUEST_FILENAME} !-f [NC]  #original Symfony .htaccess
condition and rule
RewriteRule ^(.*)$ index.php [QSA,L]

This basically works as
 - if the thumbnail is already cached, the image is served (the
rewritten file exists, so index.php is not called)
 - if the thumbnail does not exist, Symfony is started, where I route
the url to the thumbnail generator module/action (which generates the
thumbnail, saves it to the cache dir, and outputs it to the user)

When moving to an IIS server (using ISAPI_rewrite), the above rules
does not work, and my Symfony action always gets called.
If I add [L] to the first rule, images are correctly served from the
cache dir. But this of course breaks the thumbnail generation part.
Anyway, this suggests that the !-f condition does not work under IIS.
I've also been playing with adding %{DOCUMENT_ROOT} to various places
in the rules, with no luck.

Any help is appreciated.

Regards,
Zoltan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to