• 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: Rewrite WO app URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rewrite WO app URL


  • Subject: Re: Rewrite WO app URL
  • From: George Domurot <email@hidden>
  • Date: Mon, 17 Sep 2012 06:33:14 -0700

Hi Raymond,

Rewriting an entire app is simple and straight forward with Wonder. You are most likely over coding.

1) update your Properties file

# Apache Deployment Rewrite
er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/AppName.woa
er.extensions.ERXApplication.replaceApplicationPath.replace=/AppName

2) update Apache
<IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteRule ^/AppName(.*)$ /cgi-bin/WebObjects/AppName.woa$1 [PT,L]
</IfModule>

NOTE: properties and rewrite mirror each other. The first line in Properties matches the second part of the rewrite rule, and the second line matches the first part.

3) if you've done anything else
Delete it, i.e. don't screw with Application._rewriteURL.

-G
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: Rewrite WO app URL
      • From: Raymond NANEON <email@hidden>
References: 
 >Rép : Re: Rewrite WO app URL (From: Raymond NANEON <email@hidden>)

  • Prev by Date: Rép : Re: Rewrite WO app URL
  • Next by Date: [no subject]
  • Previous by thread: Rép : Re: Rewrite WO app URL
  • Next by thread: Re: Rewrite WO app URL
  • Index(es):
    • Date
    • Thread