Re: mod_rewrite & WO

Will Scheidegger <[email protected]> Wed, 3 Nov 2004 08:10:00 +0100
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
No, it's not my goal to hide the "WebObjects" word in the URL. What 
we've done so far with mod_rewrite is to convert URLs with parameters 
(e.g. "...?id=1230903") into "static" looking URLs so the pages of the 
CMS could be indexed by search engines.

Of course we could do this inside the application too... but that would 
mean rewriting parts of several webapps that have been working fine for 
quite a while now.

-Will

On 03.11.2004, at 04:02, Kenji Nakamura wrote:

>
> 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