In httpd.conf you have to load the rewrite module after the WO module: LoadModule WebObjects_module /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebObjects.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so
In your apache virtual hosts conf file: <IfModule mod_rewrite.c> RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] RewriteRule ^/app(.*)$ /cgi-bin/WebObjects/MyApp.woa$1 [PT,L] RewriteEngine On </IfModule> In your app's Properties file: # URL rewriting er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi -bin/WebObjects/MyApp.woa er.extensions.ERXApplication.replaceApplicationPath.replace=/app John On Wed, Mar 23, 2011 at 1:54 AM, Ken - Watermark Studios < k...@watermarkstudios.com> wrote: > I know this is a topic that has been exhausted extensively, but I need some > help finding resources that address my difficulty with mod_rewrite and wo. > > I notice that a number of tutorials explain how to mod_rewrite direct > actions for shorter URLs, but is there a way to just generically remove the > "cgi-bin/WebObjects/App.woa" portion of the URL? I don't mind the "wo/" or > "wa/" part, but it would be nice to just have " > www.mysite.com/wo/dynamic_stuff" or "www.mysite.com/wa/direct_action" > especially for tracking purposes. > > I've read a number of articles about this, but either they only address the > direct actions and require some application class imports or they just don't > seem to work. > > Btw, I'm running Centos 5, WebObjects 5.4, and Apache2. > > Thanks, > > Ken Anderson > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com > > This email sent to johnth...@gmail.com >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com