Methods on how to www and not to www are shown here:
WHY choose the UK for web hosting?: Googlebot: Preventing Duplicate Content
It also describes the issues which can arise from indexing
yoursite.com/index.php
AND
yoursite.com/
Returns the same content obviously, which is a similar issue to the www issue.
Have fun...