On Apr 16, 2009, at 11:54 AM, Kieran Kelleher wrote:

Thanks Chuck. I added [L].... makes sense. Also should your example separate options with commas ... like [L,PT] ?

It has been so long that I had to look it up. I don't recall the comma, but I have it:

[last,passthrough]

Chuck





-Kieran

On Apr 16, 2009, at 2:22 PM, Chuck Hill wrote:


On Apr 16, 2009, at 7:50 AM, Kieran Kelleher wrote:

Finally! Searching the apache docs more, I found another option PT, the passthrough option, that specifically refers to this being needed for mod_alias or using mod_rewrite with any other modules that do URI-to-filename mapping or translation.

Yes. The Last flag may also result is a small speed improvement unless you are double re-writing: [LPT]

Chuck




The final working rewrite rule is:

<IfModule rewrite_module>
# rewrite logging
RewriteLog "/var/log/apache2/rewrite.log"

# PURL feature
RewriteEngine On
RewriteRule ^/purl/(.*)$ /cgi-bin/WebObjects/cheetah.woa/-52040/wa/ PurlAction/purl?p=$1 [PT]
</IfModule>

Thanks for the mind-prodding guys.

Now it is working in apache2 on my dev machine. Hopefully apache 1.3 will be similar configuration when I deploy this feature in a few days.

Regards, Kieran

On Apr 16, 2009, at 10:28 AM, Kieran Kelleher wrote:




--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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