(WordPress)- How to fix WordPress website URL abnormal problem

(WordPress)- How to fix WordPress website URL abnormal problem

(WordPress)- How to fix WordPress website URL abnormal problem

Kimo, which was often used in the past, and now Yahoo intellectuals, also stopped serving this year. I thought I would sort it out by myself, and I would also publish an English version for practicing English. If there is a grammatical error, please include more.

One cause:
Incorrect settings for the WordPress URL and website URL options can cause redirection problems, 404 errors, and other common problems
Two solutions:
The WordPress URL and website URL options can be entered from the console. Settings ---> General page.
The two URLs must be exactly the same.
If you cannot access the console of the WordPress site, you can use FTP to change the URL. There are two ways to use FTP:

2.1 Update the WordPress URL and site URL settings in the wp-config.php file
After connecting to your website using the FTP client, find the wp-config.php file. Now you need to edit this file in Notepad. And add the following code:

Don’t forget to replace example.com with your own domain name. Then save the changes and upload the file back to the server.

2.2 Update URL to use functions.php file
You can also update the functions.php file of your theme's URL.
Open your FTP client and go to the /wp-content/themes/file folder. Open the file folder of the theme currently in use and find the functions.php file in it. Now you will need to edit the functions.php file in Notepad. Just add the following code at the bottom of the function file:

After logging in to the website, don't forget to change the WordPress URL from the settings page. After adding them to the settings page, you need to delete this code from the theme's function file. .


1. This image file is collected and reproduced from the Internet, and does not assume any technical and copyright issues.

2. If there is a download link for broadband testing and research purposes only, please delete it within 24 hours after downloading, and do not use it for commercial use.

3. If you have violated your legal rights, please write to us and we will delete it in time. We apologize for the inconvenience caused to you.


發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *