[Zope] Silly(?) rewrite question

Evan Simpson evan@4-am.com
Sun, 05 Dec 1999 21:20:03 -0600


Harry wrote:

> on 12/4/1999 7:58 PM, technews@egsx.com at technews@egsx.com wrote:
>
> > somtheing like this __this is untested__
> >
> > RewriteRule ^/News/?(.*) .....Zope.cgi$1
>
> This results in all graphics/images on the Zope/Squishdot instance being
> broken.

This is a little verbose, but should work... I tested it :-)

RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/News$ .../Zope.cgi/ [E=AUTH...
RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/News/(.*) .../Zope.cgi/$1 [E=AUTH...

Depending on what you do in Zope, you may want to use a SiteRoot to fix up
generated paths.

Cheers,

Evan @ 4-am