I recently moved my blog from co.cc domain to .com domain. The server was same, only domain name was changed , so I moved all my WordPress files to a new folder. Since the settings in database was still of old domain , the page was not loading from new domain. There are 2 methods of doing this, 1. editing wp-config.php and 2. editing database .
Editing wp-config file
Add this line in your wp-config.php and save it,