Unable to login after modifying WordPress background site address

WordPress one 2.1K Reading mode

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.

 Unable to log in to the website after modifying the WordPress background site address - Picture 1

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:

 update_option('siteurl',' https://zmingcx.com '); update_option('home',' https://zmingcx.com ');

Change the link in the code to your own, and then refresh the page to restore the link.

If you want to change the site domain name link, please refer to:

修改 WordPress 后台站点地址后无法登录网站-图片2
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 forty-four forty-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!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
    •  Notes of Daddy Building Website
      Notes of Daddy Building Website four

       :grin: The operation mode of the wp domain name change is wrong.

     anonymous

    Comment

    Anonymous netizens
     :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

    Drag the slider to complete validation