On May 13, 2009, at 9:50 AM, Jeremy Rosenberg wrote:

Just to close the loop, this worked for us. According to my Apache guy the secret was in the [PT] passthrough flag there. He didn't know about that trick.

I think I made him nervous with the suggestion that I might want to do such things in other circumstances, but it certainly solves this issue for now.

There are lots of useful things you can do with rewrite rules! Your Apache guy will love you. :-)

You could also make that rule simpler as
RewriteRule favicon.ico$ /favicon.ico [PT]

And if you don't want an icon
RewriteRule favicon.ico$ - [F]

Just to get you thinking...

RewriteRule ^/login$ /cgi-bin/WebObjects/YourApp.woa/wa/login [PT]

Parameters are easily handled.

Chuck

On May 12, 2009, at 1:20 AM, [email protected] wrote:

From: Guido Neitzer <[email protected]>
Date: May 11, 2009 5:03:47 PM PDT (CA)
To: WebObjects-Dev Apple <[email protected]>
Subject: Re: /wa/favicon.ico ?


On May 11, 2009, at 4:42 PM, Joe Moreno wrote:

You could try my "solution" - I see the exception in the logs and, realizing it's just a call for the favicon.ico, just ignore it. Pretty lazy, eh?

I've been toying with the idea of creating a direct action with this name to return something.

As I said:

     <IfModule mod_rewrite.c>
             RewriteEngine On
             RewriteCond %{REQUEST_METHOD} ^TRACE
             RewriteRule .* - [F]
             RewriteRule /.*/favicon.ico /favicon.ico [PT]

                # more rules ...
        </IfModule>

and be done with it. I have an image in the root folder of the domain and that works just fine.

Guido

= ======================================================================
Jeremy Rosenberg                                        
Application Developer
Institutional, Collaborative, and Academic Technologies
IT Services
Simon Fraser University
Burnaby, BC, Canada V5A 1S6

Email:  [email protected]

"ICAT: Of great importance to your academic success and SFU's global achievement"










_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]


--
Chuck Hill             Senior Consultant / VP Development

Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to