Doesn't seem to be working for me.  I also need to use PT instead of R because 
I want the urls encoded that way for SEO.

Example: http://www.kahalawai.com/buzzscatering/menu/A+la+Carte/Dinner+Entr%E9es

Using the NC flag Dinner+Entr%E9es get encoded to Dinner Entr?es (that's what 
my logging statement is showing for that variable).

My rewrite rule:

RewriteRule ^/buzzscatering/menu/(.*)/(.*)$ 
/cgi-bin/WebObjects/BuzzsCateringFrontEnd.woa/wa/menuPage?menu=$1&section=$2 
[PT,L,NE]

Thanks,

Johnny Miller
Kahalawai Media Corp.
www.kahalawai.com



On Nov 8, 2011, at 11:48 AM, Miguel Arroz wrote:

> Hi,
> 
>   http://terminalapp.net/avoid-escaping-urls-in-apache-rewrite-rules/
> 
>   Regards,
> 
> Miguel Arroz
> 
> On 2011-11-08, at 1:08 PM, Johnny Miller wrote:
> 
>> Hi,
>> 
>> OK, next problem.  Suppose you have a string link "A & B" which gets url 
>> encoded to "A+%26+B".  
>> 
>> If you are using the string in a url like 
>> /cgi-bin/SomeApp.woa/wa/someAction?string=A+%26+B you can get the right 
>> value by using WORequest.stringFormValueForKey
>> 
>> But if you are using mod rewrite to do something like /action/A+%26+B  you 
>> don't get the right value because the rewrite escapes %26 to & 
>> 
>> Does anybody happen to know off hand how to tell Apache not to escape the 
>> value?  I'm on Apache 2 and I've tried using the NE flag but that did not do 
>> the trick.
>> 
>> Thanks in advance,
>> 
>> Johnny Miller
>> Kahalawai Media Corp.
>> www.kahalawai.com
>> 
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com
>> 
>> This email sent to ar...@guiamac.com
> 
> 

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

This email sent to arch...@mail-archive.com

Reply via email to