[Seaside] how to remove '/seaside/someApp'

Ron Teitelbaum Ron at USMedRec.com
Fri Jul 20 15:04:10 UTC 2007

Hi All,

I actually was able to do this but only through a major hack!  (on 2.7 also)

I subclassed 

WADispatcher to override #default
WAFileHandler to override #registerAsHandler:
WAFileLibrary to override #urlOf:
WAKom to override #default

Changed WALibrary #urlOf: to use new subclass.

I was considering refactoring all this to make this easier for others but
havn't had time yet.  It would be nice to have.

The path really should be read from the path of the dispatcher instead since
the dispatcher appears capable of supporting multiple root paths.

Happy Coding!!

Ron Teitelbaum
President / Principal Software Engineer
US Medical Record Specialists

From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Ching de la
Sent: Friday, July 20, 2007 3:50 AM
To: Seaside - general discussion
Subject: Re: [Seaside] how to remove '/seaside/someApp'

Thanks Philippe,

Alas, Apache mod_rewrite is too strong for my taste. I have a small proxy
server at my front end but I'd hate to get my hands dirty on something I
dont fully understand so, I'm looking for something from Seaside and
David Shaffer shared this method with me and when I tried it a while ago, it
has worked for me. 

WADispatcher default setName: ''. 
WADispatcher default defaultName: 'yourApp'

You need 2.7 for this to work.

I now have another problem which is regarding photos (*.jpg). I have a few
photos rendering nicely but new additions have failed to render at all. I
wonder if you know of a fix for this. 


On 7/20/07, Philippe Marschall <philippe.marschall at gmail.com> wrote: 
2007/7/19, Ching de la Serna <ching.dls at gmail.com >:
> Hi,
> I have a little problem. How do I remove '/seaside/someApp'  such that I
> could have: 'http://someDomain.com/' instead of ' 
> http://someDomain.com/seaside/someApp'. Help anyone?

The short answer is you can't. The long answer is if you run behind
Apache 2 (which is a good idea) you can use mod_rewrite to hide it. 

A quick googling turned out the following:

You'll have to adapt it to your situation. There were also examples 
posted for lighty.

Seaside mailing list
Seaside at lists.squeakfoundation.org

More information about the Seaside mailing list