.htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage

In my experience you don’t need to mess with .htaccess with a WordPress site. Just set the General Settings -> “WordPress Address” and “Site Address” to the preferred version (www or non www) and WordPress takes care of the redirection for you.

error code: 523