Answer the question
In order to leave comments, you need to log in
How to fix 503 error on Wordpress site?
Deployed the site on a subdomain. Set up. Everything is working. Rename the subdomain directory so that it becomes exactly the domain directory - then error 503. Why does the site work on the subdomain, but it does not work on the domain? Works on any subdomain.
Mystic.
In a DB the necessary domain/subdomain in each case is registered everywhere.
Answer the question
In order to leave comments, you need to log in
Total. 3 nights. I contacted the Godeddy support and said that I saw another error in the logs Unable to allocate memory . They told me where to increase the memory in the account. Thankfully it started...
After changing the domain, you need to fix the database, the wp_options
keys in the table siteurl
and home
replace the value with the domain to which WordPress was transferred. Then, using the plugin ( Better Search Replace ) or through the database, replace all occurrences of the old domain with the new one.
In WP, binding to the domain and paths on the server is hard!
The database stores the settings, the domain is specified (and when you set everything on the subdomain it was attached to it) and the paths to the files are not relative, but absolute (but this is not always the case, it all depends on the plugins that are used)!
You need to go in any convenient way:
1. Download the database, find all mentions of the subdomain in any editor and replace it with the domain! In this case, you will find references to absolute paths if they are in the database.
2. Run queries in mySQL are described here
3. The 3rd way is the easiest. Using the plugin . You will need to pull the database on a working subdomain, specifying new file paths and domain, then import this database into phpMyAdmin and then rename the folder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question