Re: WOBiking
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:
|
_______________________________________________
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