oh thanks fabian! 

maybe just what I was looking for -- 

the site is like twitter, so there's standard urls to reach a user profile, or 
a post and those urls should be short, of course.

> They work for me, but I'm by no means a "rewrite expert"...

rewrite expert? ick! who would want to be that!! 

I mean, the syntax looks like someone was drunk while slapping their hands on 
the keypad...

On Jan 29, 2012, at 1:10 PM, Fabian Peters wrote:

>    # root rewrite
>    RewriteRule ^/$ /cgi-bin/WebObjects/App.woa [L,PT]
> 

ah, so this basically translates anything into a full woa I guess?

>    RewriteRule ^/(\d*?/?)ajax/(.*)$ /cgi-bin/WebObjects/App.woa/$1ajax/$2 
> [L,PT,QSA]
>    RewriteRule ^/(\d*?/?)upload(.*)$ /cgi-bin/WebObjects/App.woa/$1upload$2 
> [L,PT,QSA]

I guess those two above translate standard ajax and file upload calls in the 
same way?

>    RewriteRule ^/(\d*?/?)wa/(.*)$ /cgi-bin/WebObjects/App.woa/$1wa/$2 
> [L,PT,QSA]
>    RewriteRule ^/(\d*?/?)wo/(.*)$ /cgi-bin/WebObjects/App.woa/$1wo/$2 
> [L,PT,QSA]
>    RewriteRule ^/(\d*?/?)wr(.*)$ /cgi-bin/WebObjects/App.woa/$1wr$2 [L,PT,QSA]

and so, these I guess translate calls from errest, direct actions and basic 
components?

I can test around with these a bit, but I'm not certain I understand what they 
are doing --

all cool, but you must also have some code in your app to return short urls 
during deployment?

I used to have a menu item that used deployment urls for things like signup, 
but used component urls locally during development, but I am guessing with 
WOnder I might have a different approach there?



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

This email sent to [email protected]

Reply via email to