[HCoop-Help] Domtool redirect: with www to without www keeping file path

Michal michalcharemza at gmail.com
Thu Apr 9 12:12:16 EDT 2009


Ok... I spoke too soon. It seems to work at first, but now I get a
'too many redirects' error.

On Thu, Apr 9, 2009 at 5:05 PM, Michal Charemza
<michalcharemza at gmail.com> wrote:
>
> On 9 Apr 2009, at 16:39, Adam Chlipala wrote:
>>
>> You must not have created a virtual host for mydomain.com.  You can use
>> the [vhostDefault] directive to do that.  It's like [vhost], but with no
>> argument before the [with].
>
> I'm not sure what you mean here: but in trying to find out, I have just
> found in the wiki that I shouldn't be using
>
> web "www"
>
> In a 'dom' block, but instead:
>
>  WWW = begin
>    rewriteRule "^(.*)$" "http://mydomain.com$1" [redirectWith permanent]
>  end
>
> which does do the redirection exactly as I intended.
>



More information about the HCoop-Help mailing list