WordPress Home Fix
To resolve the issue, you will need to update your domain in WordPress; this update will also be necessary to make your blog display and function properly with your temporary web address or secure web address.
Update WordPress Domain with Database AccessTo update an improperly configured WordPress domain or to use a temporary URL or a secure web address for your WordPress domain via database, follow the steps below:
- Log into your cPanel.
- Check the wp-config.php file in the appropriate directory to get the WordPress database name.
- In the Databases section of cPanel, click on the phpMyAdmin icon.
- In the left menu, click on the database name.
- In the left menu, click on the wp_options table.
- In the option_name column, look for the siteurl and home variables.
- Change those variables to the correct address for your blog.
Update WordPress Domain through WP-AdminWordPress allows users to update their domain name through the administrative access panel; however, this should be done with caution. This method is best for users who wish to update the domain prior to a directory change.
To change a WordPress domain through WP-Admin:
- Visit http://yourdomain.com/wp-admin/ and log in with your admin username and password. (Be sure to replace yourdomain.com with your working domain name.)
- In the left menu of the dashboard, click Settings.
- Under General Settings, in the WordPress address (URL) field, enter the new domain.
- In Site address (URL) field, enter the new domain again.
- Click Save Changes at the bottom of the page.
Update WordPress Domain via File Manager or FTPIf you are unable to update your WordPress domain using the methods above, you can alternativley try the following:
- In cPanel, go to File Manager or connect via FTP.
- Navigate to your WordPress directory.
- Edit the wp-config.php file.
- Update (or add) the following lines to the code:
- Save the changes.