Re: mod_rewrite & WO

Kenji Nakamura <[email protected]> Wed, 03 Nov 2004 12:02:54 +0900
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
I've recentry tryied a mod_rewrite related matter as our customer wants 
to hide "WebObject" word form the URL.  

Are you doing something like that?

I know some sites use FRAMESET to hide a long url, but the word still 
remains inside the page.  

Then I tried to use mod_rewrite, but as far as tried Apache dispached 
the request to mod_WebObject prior to mod_rewrite regardless the order 
of mod modules listed in httpd.conf.  I just guess that's because 
mod_WebObject works with the Apache API mechanism while mod_rewrite uses 
the URL-to-filename hooks.  (Would someone tell me my guess is right or 
not?)

If my guess is right and you are doing a same kind of thing as me, you 
need to change both Adaptor and the application.

mod_WebObject only takes the request with WO URL which starts with the 
value of WebObjectsAlias, otherwith passes it through.

Once mod_WebObject takes the request, it won't passed it after that. 

So, mod_rewrite doesn't affect mod_webjects at all, nor receive a 
request with a WO URL.

mod_rewrite should work fine for other than WO URL with mod_webojects 
loaded together.

> BUT why does the same thing work with mod_weblogic?

I don't know about mod_weblogic at all.  If in case of weblogic the 
session and context infomation is stored in cookie or form, the URL can 
be very simple and the module just needs to send forward the request to 
a servelet or some listener.  Any alias can be used for the module, 
unlike mod_webobjects which needs the word "/WebObjects" in it.  

Kenji