Every page without w w w redirects to the homepage. Pages work normally with the w w w & the homepage redirects from non w w w to w w w.
(I want w w w only on the website)
I have tried changing configuration / web /auto redirect to base url but this just makes all of the pages accessible with w w w or without so causes duplicate content.