Thanks Jari,

That worked after I removed the '301' part, which pound reported as an
unknown directive when I restarted it (perhaps because I'm using an old
version?).

After updating the config, the first time the url loaded it went to
example.com but thereafter to www.example.com on all other tries and
machines/mobiles.

I guess it would be good to get the 301 working for search engines to
recognise www.example.com as the canonical domain, but I'm happy for now.

Many thanks Jari! More noob questions to come soon.

Simon



On Sun, Jul 1, 2012 at 12:21 AM, Jari Fredriksson <
[email protected]> wrote:

> On 30.6.2012 5:32, Simon Jones wrote:
> >        Service
> >                 HeadRequire "^Host:.example\.com$"
> >                 Redirect "http://www.example.com";
> >                 BackEnd
> >                         Address 192.168.1.162
> >                         Port 8082
> >                 End
> >         End
>
> Service
>   HeadRequire "^Host: example.com$"
>   Redirect 301 "http://www.example.com";
> End
>
> That should do it. The BackEnd is unneeded here.
>
> --
> Jari Fredriksson
> Digital Identity Solutions Europe Oy
> tel. +358 400 779440
> [email protected]
>
>
>
>

Reply via email to