In wordpress site how to Redirect the non-www version of the site to the www version to remove duplicate content
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
You need to setup it in your .htaccess file, it should looks like this one:
|
|||||||||
|
|
This code is similar to Eugene’s, but it will redirect any domain that is not your main domain with “www” to the correct address. Handy if you have multiple top-level domains.
|
|||||||||||
|