Not even .htaccess  - do it directly in your apache config file,  
right beside the <VirtualHost> container for your scoop site.

<VirtualHost>
ServerName example.com
Redirect Permanent http://www.example.com
</VirtualHost>

<VirtualHost>
ServerName www.example.com
(all your config here)
</VirtualHost>

There isn't even a delay the way you'd get with loading a page on  
example.com with a meta tag that sends you on to www.example.com - it  
happens immediately within the server.

-janra


On 14-Jun-06, at 11:25 PM, kpaul mallasch wrote:

> i'd recommend doing it at the server level - ie .htaccess...
>
> -kpaul
>
> On Wed, 14 Jun 2006, Jason Eaton wrote:
>
>> Howdy folks.
>>
>> I have a silly problem with a scoop 1.1 install.
>>
>> But it's just a silly problem in general.
>>
>> I know there's a way to check the URL of a page so that if it's  
>> loaded
>> as, say "www.example.com" it can be redirected to  
>> "www.example.org" in
>> order to ensure the cookie is set correctly. The problem is, I'm not
>> exactly sure how to do it.
>>
>> I mean, sure, I could set up virtual hosts on all the variants and
>> have them redirect using a meta tag, but that seems so barbaric  
>> when I
>> think that I might be able to just throw a little snippet of JS, or a
>> scoop box, in and have it be done.
>>
>> Thanks.
>> -- 
>> ~Jason
>> _______________________________________________
>> Scoop-help mailing list
>> Scoop-help at lists.kuro5hin.org
>> http://lists.kuro5hin.org/mailman/listinfo/scoop-help
>>
> _______________________________________________
> Scoop-help mailing list
> Scoop-help at lists.kuro5hin.org
> http://lists.kuro5hin.org/mailman/listinfo/scoop-help