Removing “www” from a site URL

If you want to change your WordPress Address (URL) one option is to make use of this tool:
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Just download it, upload it to your server, extract its files and access it via your browser.

Example:
Suppose your WordPress Address (URL) and your Site Address (URL) are “http://www.example.com” (without quotes obviously). So if you want to remove “www” I recommend you replace “www.example.com” with “example.com”.

enter image description here

Just make sure you first backup your database before doing anything and also before clicking on “live run” you should perform a “dry run”.