Re: mod_rewrite & WO

Will Scheidegger <[email protected]> Wed, 3 Nov 2004 09:49:45 +0100
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Hi Xavier

Thanks for your reply. I'll look into that. We've used mod_rewrite only  
on stateless pages, exactly as in your example. I really hope I'll get  
this working again.

-Will

On 03.11.2004, at 09:09, Dev WO wrote:

> Actually I'm not a mod_rewrite expert at all, but I do remember  
> Rentzsch was of really good help on Apple's WO mailing list.
> here's the direct link to his weblog regarding mod_rewrite and WO:
> http://rentzsch.com/woWebLog/httpdConfChanges
> Also I don't know if this can be used to track session. I know we are  
> using it in cooperation with a directAction method to display  
> something like
> www.example.com/fr/Pagex
> which will be rewritten internally to
> www.example.com/cgi-bin/WebObjects/application.woa/wa/directAccess? 
> lang=fr&section=pagex
>
> I hope this will help you.
>
> Xavier
>
>
>
>> 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
>>
>> _______________________________________________
>> WebObjects-admin mailing list
>> [email protected]
>> http://www.omnigroup.com/mailman/listinfo/webobjects-admin
>>
>
> _______________________________________________
> WebObjects-admin mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-admin