• 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: URL for WebObjects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: URL for WebObjects?
      • From: Miguel Angel Torres Avila <email@hidden>
References: 
 >URL for WebObjects? (From: Timothy Reaves <email@hidden>)

  • Prev by Date: URL for WebObjects?
  • Next by Date: Re: halp?
  • Previous by thread: URL for WebObjects?
  • Next by thread: Re: URL for WebObjects?
  • Index(es):
    • Date
    • Thread