• 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: WOBiking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOBiking


  • Subject: Re: WOBiking
  • From: Guido Neitzer <email@hidden>
  • Date: Tue, 7 Oct 2008 13:21:45 -0600

On 07.10.2008, at 13:04, Xavier Destombes wrote:

Hello Guido,
I'm jumping on this answer to ask you:
Do you have a sample code that use wonder url rewriting feature?
When you decode using Apache rewrite, are you using a script or a static rewriting rule?
:)

I have this in my application class:

/**
 * Make URLs nicer
 */
public String _rewriteURL(String url) {
  if (ERXProperties.booleanForKeyWithDefault("net.events.Designer.shouldRewriteUrls", false)) {
    url = "">"/cgi-bin/WebObjects/Designer.woa/", "/");
  }
  return url;
}

and this in my httpd.conf:

RewriteRule ^(/-{0,1}[0-9]*/*(wo|wr|wa|womp|wis|ajax)/.*)$ /cgi-bin/WebO
bjects/Designer.woa$1 [PT]

(one line) as a static rewrite rule. This produces the URLs seen on my private web site <http://www.event-s.net>. I was sometimes thinking of making them a bit more sophisticated, but never got to it.

cug

-- 
Real World WebObjects Bootcamp at the Big Nerd Ranch:
http://www.bignerdranch.com/classes/real-world_webobjects.shtml

 _______________________________________________
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: 
 >WOBiking (From: Jean Pierre Malrieu <email@hidden>)
 >Re: WOBiking (From: Mike Schrag <email@hidden>)
 >Re: WOBiking (From: Guido Neitzer <email@hidden>)
 >Re: WOBiking (From: Xavier Destombes <email@hidden>)

  • Prev by Date: Re: WOBiking
  • Next by Date: Re: WOBiking
  • Previous by thread: Re: WOBiking
  • Next by thread: Re: WOBiking
  • Index(es):
    • Date
    • Thread