• 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: Using mod_rewrite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using mod_rewrite


  • Subject: Re: Using mod_rewrite
  • From: Michael Henderson <email@hidden>
  • Date: Tue, 13 Jul 2004 12:15:32 -0700

Hi,

The problem is the app needs to emit the page with RLS in the mod_rewrite format so mod_rewrite can rewrite them into the WO format when the user
clicks a link.


The usual way : use all your own components for hyperlinks, forms etc. and develop with the app deployed so you always go thru your local apache with
mod_rewrite. You can make these components so you switchable between WO and rewrite URL format.


- this is not so bad, you can configure the apache adaptor to read the list of apps from an xml config file.
I have a config file with my app and a port of 9093 I run the app in XCode with -DWOPort 9093
This means that I can run in XCode, but go thru apache and test the rewriting at the same time.



A way I have also implemented is to sublcass from a custom WOComponent class for pages and override appendToResponse(). I call the super implementation and then ge the generated response as a string and use a regex to change all the WO Urls in the page into my mod_rewrite format and send the result back to the browser. I made this switchable form the command line so I can test with it on or off.


This made life much easier since I could carry on using regular WO components like WOHyperlink.

Maybe Project Wonder has something like this?

Mike
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Using mod_rewrite
      • From: Amorya North <email@hidden>
    • Re: Using mod_rewrite
      • From: Michael Henderson <email@hidden>
References: 
 >Using mod_rewrite (From: Amorya North <email@hidden>)

  • Prev by Date: Re: Using mod_rewrite
  • Next by Date: Automated/load testing for WO apps
  • Previous by thread: Re: Using mod_rewrite
  • Next by thread: Re: Using mod_rewrite
  • Index(es):
    • Date
    • Thread