that would be great ... but it somehow needs to recognize that the file is missing so that the default file can be sent ...

can that be done with the rewrite dispatch tags ... or perhaps the error tags with the exception attributes ... ??




On Jan 14, 2008, at 12:06 PM, Scott Ferguson wrote:


On Jan 11, 2008, at 6:00 PM, Arthur Naylor wrote:

hello !!

i've read elsewhere that this should work fine but am not able to get the mod_rewrite condition and rule to affect the serving of resin's 404 instead of my default image ...

Once the request gets to Resin, mod_rewrite doesn't affect anything. So this sounds like it would be something that needs to be configured on the Resin end of things, e.g. with the <rewrite- dispatch> tag (http://caucho.com/resin/doc/rewrite-tags.xtp)

-- Scott


any leads would be very helpful

thanks !!


On Jan 11, 2008, at 9:10 AM, Arthur Naylor wrote:

hello !!

am trying to use apache's mod_rewrite for missing JPGs using a
default JPG ...

my .htaccess file has ...

RewriteEngine on

RewriteBase /

# missing images
RewriteCond %{REQUEST_URI} !-U
RewriteRule .*\.jpg$ /assets/default.jpg [L,PT]

but resin is still sending back its 404 ... when i request a missing
JPG from a page on the site ...

any ideas ???


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to