• 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: Encoded Characters and Mod_Rewrite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoded Characters and Mod_Rewrite


  • Subject: Re: Encoded Characters and Mod_Rewrite
  • From: Johnny Miller <email@hidden>
  • Date: Tue, 08 Nov 2011 12:01:55 -1000

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ées

Using the NC flag Dinner+Entrées 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+&+B".  

If you are using the string in a url like /cgi-bin/SomeApp.woa/wa/someAction?string=A+&+B you can get the right value by using WORequest.stringFormValueForKey

But if you are using mod rewrite to do something like /action/A+&+B  you don't get the right value because the rewrite escapes & 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Encoded Characters and Mod_Rewrite (From: Johnny Miller <email@hidden>)
 >Re: Encoded Characters and Mod_Rewrite (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: Encoded Characters and Mod_Rewrite
  • Next by Date: Delete rules on flattened relationships
  • Previous by thread: Re: Encoded Characters and Mod_Rewrite
  • Next by thread: Delete rules on flattened relationships
  • Index(es):
    • Date
    • Thread