This is very easy to do on a windows server.
Quote:
Open IIS and set up a new website for oursite.co.uk (set the host header to this). You should already have one set up for host header www.oursite.co.uk.
Once you've set up a website for oursite.co.uk, right click the website and select "properties".
Then select the "Home directory" tab. Here you have to select the "Redirect to a url" option, type in "www.oursite.co.uk" in the "redirect to" box and then select the checkbox "A permanent redirect to this url".
And that's it! Very easy.
|
Many thanks for that its the exact solution I came accross a little earlier and implemented but with no immediate effect!
The reason being our domain host has not pointed the A record to our IP address, only the "www" A record, the effect being the non wwww is currently being sent to their default IP and then redirected to the www address.
I have asked them to change the DNS A record to point at our IP (Server) address and once this is done your solution should work very well.
I have also considered using IIS to set up a seperate site folder and host a single unique page on the oursite.co.uk domain with a manual text link to the correct www site. This way there is absolutely
no chance of Google having canonical problems and confusing the two domains.
Two methods both of which should do the job.
Once again many thanks