What is redirection?

Redirection is forwarding one URL to other URL.

Why is permanent www or non www redirection important?

When you create a blog, it can be accessed with or without www if you do not do permanent redirection to www or non www and this can lead to a penalty for duplicate content as Google or any search engine considers www and non www as different sites, it doesn’t matter if domain name is same. To avoid this penalty you need to decide whether to keep www or not and then do a permanent redirection for that in htaccess file on your server.

Below is an easy tutorial to do redirection in htaccess.

Opening .htaccess file

.htaccess is a file on your server, to open and edit you can either use your cPanel file manager or Filezilla to access .htaccess file (I am using filezilla).

Using filezilla is easy, just download and open it, use your credentials to login and in wordpress folder search for .htaccess file, now right click on that and select edit.

To redirect from www to non www

Copy and save any of the below code in .htaccess file to force non www version for your site.