WordPress Home Fix
If the links in your WordPress site show the wrong domain, redirect to another site, or is missing images or styling, this is typically due to an improperly configured URL in the database for your WordPress blog.
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.
Jump to a Section:
- Update WordPress Domain with Self Help Tools (Recommended)⤵
- Update WordPress Domain with Database Access⤵
- Update WordPress Domain through WP-Admin⤵
- Update WordPress Domain via File Manager or FTP⤵
HostGator now offers a Self Help tool for WordPress users that provides simple administration management. You can easily modify database entries in a comprehensive environment, allowing you to change the target domain of your installation in just a few steps.
Update WordPress Domain with Self Help Tools
- For more information on the WordPress Self Help Tools, please refer to the following article:
Accessing the WordPress Self Help Tools
- Log into your cPanel.
- In the Software section, click on the WordPress Tools icon.
- Two tools are displayed - Database Tools and the Domain Changer.
WordPress Domain Changer
This tool will change the domain information for a selected WordPress installation.
- Click the Domain Changer icon.
- Under Change a WordPress Domain, select the WordPress installation you wish to change and click Select Install.
- Choose the new domain from the dropdown list and click Change to this domain.
- Click Yes to confirm the change.
- A confirmation message indicates a successful domain change. To perform another domain change, click Clear and Start Over.
Update WordPress Domain with Database Access
To update an improperly configured WordPress domain or a secure web address for your WordPress domain via your 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 Files section, click the File Manager icon.
- Select the wp-config.php file in the base directory for your WordPress blog.
- Right-click on the file and select View.
- Find the line:
- Copy or remember the database name (i.e., username_wrpd1).
- Exit the File Manager and return to cPanel home.
- In the Databases section of cPanel, click on the phpMyAdmin icon.
- In the left menu, click on the plus (+) button to expand the list of database names.
- Click on the database name that is associated with the WordPress blog.
- 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.
- Click Edit on the far left of the option name.
- On the next page, place the full URL for your site into the large text box in the option_value field.
- Click Go.
If you wish for your WordPress to work with your domain name, be sure to change the siteurl and home database values to your normal domain if they are for some reason not already set to this.
Update WordPress Domain through WP-Admin
WordPress 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 before a directory change.
To change a WordPress domain through WP-Admin:
- Visit http://example.com/wp-admin/ and log in with your admin username and password. (Be sure to replace example.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.
If you've lost or forgotten your WP-Admin username or password, navigate to the login page (http://example.com/wp-admin/ ) and click the Lost your password link.
You will receive a prompt to enter your username or email address. WordPress will send a reset password email to the email on file for that username. Follow the instructions in the email to reset the password.
Update WordPress Domain via File Manager or FTP
If you are unable to update your WordPress domain using the methods above, you can alternatively 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:
define("WP_SITEURL","desired url address"); define("WP_HOME","desired url address");
- Save the changes.