[Seaside] Re: Kom redirect
Yanni Chiu
yanni at rogers.com
Mon Nov 13 16:44:35 UTC 2006
Brad Fuller wrote:
>>>Alternatively, I'd just like to get the suggestion from the
>>>seasidehosting.st FAQ (above) working. Can anyone help?
>>
>>Have you tried in a clean, Seaside-only, image?
>>Maybe some other package you've got loaded is
>>interfering.
>
> Hmmm... It's 3.8 with seaside and pier. Could pier do this?
I just had to look more closely. It seems to me that
seasidehosting is doing something extra in the image
or in its Apache config. The code in:
WADispatcher>>handlerForRequest: aRequest relativeTo: base
works if the the basePath of WADispatcher is set
to '/'. But that is not what I want to do, since I still
want the '/seaside' there for redirect/rewrite.
The solution I have is to add:
RedirectMatch ^$ http://foo.com/seaside/
RedirectMatch ^/$ http://foo.com/seaside/
to my Apache config. Note that this is equivalent
to Nevin's image change:
aRequest url = '/' ifTrue: [aRequest url: '/seaside/home'].
More information about the Seaside
mailing list