• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] Apache rewrite rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Apache rewrite rule


  • Subject: Re: [OT] Apache rewrite rule
  • From: Kieran Kelleher <email@hidden>
  • Date: Thu, 16 Apr 2009 14:54:14 -0400

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

-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:


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: [OT] Apache rewrite rule
      • From: Chuck Hill <email@hidden>
References: 
 >[OT] Apache rewrite rule (From: Kieran Kelleher <email@hidden>)
 >Re: [OT] Apache rewrite rule (From: Mike Schrag <email@hidden>)
 >Re: [OT] Apache rewrite rule (From: Kieran Kelleher <email@hidden>)
 >Re: [OT] Apache rewrite rule (From: Kieran Kelleher <email@hidden>)
 >Re: [OT] Apache rewrite rule (From: Kieran Kelleher <email@hidden>)
 >Re: [OT] Apache rewrite rule (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: wotaskd password
  • Next by Date: Re: wotaskd password
  • Previous by thread: Re: [OT] Apache rewrite rule
  • Next by thread: Re: [OT] Apache rewrite rule
  • Index(es):
    • Date
    • Thread