A novice who has just come into contact with WordPress may think that it is absolutely wrong to change the domain name by modifying the address in the WordPress address (URL) and site address (URL) directly on the background general settings page.The result is very sad. After modification, the website cannot load the style file or log in to the background. If you want to change it back, you don't know where to start.
To restore the previous link settings, a common method is to log in phpMyAdmin to modify the link addresses of home and siteurl in the database wp options table.
Here is a simpler method to add the following code to the current topic function template functions.php:
WordPress articles and image attachments are absolute paths, all stored in the database.One day, after changing the domain name of the website, you will find that the article links and pictures are all lost
eight thousand five hundred and seventyforty-one
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!