I deployed a wordpress website in AliYun web hosting before doing domain resolution and site registration, so website works on temporary domain which is provided by AliYun. The problem is coming, after registered website and resolved my domain to given IP successfully, I can access webisite by using my domain, but all other pages including sub pages, css files are not working. I found temporary domain is still working, those pages will be redirected to url prefixed with temporary domain.
Go to WordPress admin page, Click settings-> General to reset url, this is easiest way to figure it.
The reason why I introduce other two methods to change url is that I typed wrong domain, it caused I can not open website even admin page, I can not change it right back.
Go to WordPress root folder using FileZilla or some other FTP tools.
Open wp-config.php, add following two lines to it, save it back.
As official said this is not best solution as domain will not be changable, as shown below.
Another way to change url while not fossilizing url is adding two lines to theme’s functions.php file, which is located at wp-content/themes//. If functions.php file does not exist, create one with that two lines only.
Refreshing pages until new domain works
**important** Remove that two lines from functions.php file, because it is not necessary right there.