Page Redirection Issue

I have added a page redirection rule 'www.domain.com/*' redirect to 'domain.com/$1'.
it is working..

but it not redirecting to the paths. for example:
'www.domain.com/path1/path2' also redirecting to 'domain.com'

In this scenario I want to redirect www to non-www along with the path.
Was this page helpful?