Re: More URL, and Apache Deployment Rewrite
Re: More URL, and Apache Deployment Rewrite
- Subject: Re: More URL, and Apache Deployment Rewrite
- From: Pascal Robert <email@hidden>
- Date: Tue, 31 Jan 2012 21:25:52 -0500
You can keep the existing route and use rewrite rules. The only gotcha is that for REST routes with HTML handling, one of the components (I don't remember which one) to generate a link was not following the reverse rules, but I fixed that a couple of months ago. The problem was only with HTML routing, for JSON, XML, whatever, it was not a problem.
One tricky thing to remember is that the REST is living under a different request handler (/ra) so make sure your rewrite rules will be ok with the other request handlers (/wo and /wa).
>
> now that it works, I love the WOnder URL transcoding I'm getting from app pattern/replace property rules:
>
> er.extensions.ERXApplication.replaceApplicationPath.pattern=/apps/WebObjects/MyApp.woa
> er.extensions.ERXApplication.replaceApplicationPath.replace=/a
>
> If I want to further shorten typical ERRest URLs, can/should I write additional rules like?
>
> er.extensions.ERXApplication.replaceApplicationPath.pattern=/Person
> er.extensions.ERXApplication.replaceApplicationPath.replace=/p
>
> Or should I be providing new routes?
>
> I don't want to break my original, long URLs, so apache rewrites seem perfect and I can update the URLs to shorter links in my clients over time.
>
>
>
> _______________________________________________
> 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
_______________________________________________
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