Redirecting urls with www correctly