Google pagespeed service is having trouble today. They are serving my www content.
So I need a quick fix I can put on top of my index php file, to redirect the users to the non-www version, with current page and all.
So if a user lands on my site on www.test.com/some-page/ they will be redirected to test.com/some-page/ instantly
Whats a good way to do this?