Re: URL for WebObjects?
Re: URL for WebObjects?
- Subject: Re: URL for WebObjects?
- From: Guido Neitzer <email@hidden>
- Date: Wed, 19 Nov 2008 19:36:43 -0700
On 19.11.2008, at 19:17, Timothy Reaves wrote:
I thought that when a site used WebObjects, it was readily apparent because of the distinctive URL. Is this no longer the case? Can you now (or could you always) create sites that have no long string of numeric characters, and the woa? In other words, where the URL's look just like static content?
You can. You could always rewrite URLs, create different looking URLs and so on. It just got very simple with the _rewriteUrl() method that is part of Wonder's ERXApplication. You can just provide a replacement pattern and your URLs get rewritten by the application. A corresponding rewrite rule for apache's mod_rewrite does the other way.
This is from the documentation of ERXApplication:
* For example, in Properties: * <code> * er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/YourApp.woa * er.extensions.ERXApplication.replaceApplicationPath.replace=/yourapp * </code> * * and in Apache 2.2: * <code> * RewriteRule ^/yourapp(.*)$ /cgi-bin/WebObjects/YourApp.woa$1 [PT,L] * </code> * * or Apache 1.3: * <code> * RewriteRule ^/yourapp(.*)$ /cgi-bin/WebObjects/YourApp.woa$1 [P,L] * </code>
cug
|
_______________________________________________
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