Domain Alias

David A. Bayly dbayly at udena.ch
Mon Aug 26 08:35:45 PDT 2002


>On Sunday, August 25, 2002, at 12:01  PM, David A. Bayly wrote:
>
>>2) The website homemade url is now <http://www.siteb.com/>. But 
>>when the site was created you may have contrived to make it 
>><http://www.sitea.com/newsite/> , so you need to go to the server 
>>menu in Frontier and choose Change Site URL.  Enter your new home 
>>page url there, wait until you remember there isn't going to be any 
>>feedback from this operation and move on.
>>
>
>Isn't there a missing step here? When I choose Change Site URL, I 
>get an error message, "Can't coerce "About Frontier" to and 
>address...."


Indeed.  Make sure the Manila website table called 
newsiteManilawebsite to the front. Then change site url.

>
>Also, what if the site must be reachable by siteb.com and www.siteb.com?
>

Ah that's the rub and what I initially thought you meant, until I 
read your post very carefully.  Too carefully it seems.

It can be done, but it requires a bit of non Userland sleight of hand 
at the very end of the rendering process. The last chance one has for 
that is at the end of the final filter and the way to do it is to 
install a script or a reference to a script in the table at 
config.manila.callbacks.finalFilter.

In my case I have an entry with name rewriteurls and value the 
address of a script in a another root.. That script  does the rewrite 
of urls in the rendered page you want. To make that script work, it 
needs an entry in the page table that mainresponder only creates in 
certain circumstances - you can make it do so by creating another 
script at
config.mainResponder.callbacks.pathEvaluation.rewriteURLs with a body of

return true

The actual rewriteurls filter callback script  is too big to post 
here , contact me off-list if you want it.  .
-- 

- David Bayly.       Programmer and digest reader.     dbayly at udena dot ch
  		Digest Readers do it once a day.



More information about the Frontier-Users mailing list