We do NOT recommend to change domain or WordPress URL. We understand, that sometimes it is necessary. In that case:
- Do backup MySQL and whole WordPress directory.
- Check backup once again (You must be sure that everything is backed up, really).
- Go to WP Admin.
- Replace page url from
/wp-admin/
to/wp-admin/options.php
- Find there options
home
andsiteurl
and replace values to the new right values – new WordPress URL - Press Save on the page bottom.
- You will have to change images path in pages, posts, portfolio posts and options.