Simple question. So, my site is officially listed with www, and I want to redirect non-www traffic to the www domain.
On the homepage, the results are clear. http://example.com goes to http://www.example.com as a 301 redirect. The issue now is, when I try a page like http://example.com.tld/about-us, it doesn't go to http://www.example.com.tld/about-us but instead http://www.example.com.tld. This would be find except it's still a 301 redirect. Doesn't this tell Google to ignore any traffic including back link juice going to http://example.com.tld/about-us and give it to http://www.example.com instead? What about sites that have the about us page listed without www?
Should I make all redirects 302 instead of 301? Or just redirect every non-www page back to the homepage as a 301?
By the way, I use Magento. Sort of confused about when to use 302 and when not too. I know 301 is permanent, which is what makes me nervous about permanently sending traffic from a page to the homepage.
[edited by: engine at 6:16 pm (utc) on Jan 6, 2016]
[edit reason] please use example.com [/edit]