make mapped domain works with www and without

Hi,
how to make mapped domain works with www and without?
i don't want to redirect everyone to www or without www. i want that both will work.

Thanks