Fix redirect_nonwww view function