Both sites, www and non www should be configured. And you can make a 301 redirect in the www virtual directory....