HostGator.com » Support Portal

WordPress Home Fix

If your blog is showing the wrong domain name in links, redirecting to another site, or is missing images and style, these are all usually related to the same problem: you have the wrong domain name configured in your WordPress blog.

This update will also be necessary to make your blog display and function properly with your temporary web address or secure web address.

Here are some different ways to fix the problem.

Easiest way to update the domain.

  1. Visit http://yourdomain.com/wp-admin/ and login with your admin username and password. (Be sure to replace yourdomain.com with your working domain name.)
  2. Look at the bottom of the left-hand menu for the Settings link. Click it.
  3. You should be under General Settings now.
  4. Update the domain name under WordPress address (URL) to the new domain.
  5. Update the domain name under Site address (URL) to the new domain.
  6. Click the Save Changes button at the bottom of the page.

What if I can't access my wp-admin?

  1. Go to File Manager or connect via FTP
  2. Navigate to your WordPress directory
  3. Edit the wp-config.php file
  4. Update (or add) the following lines to the code:
    define("WP_SITEURL","desired url address");
    define("WP_HOME","desired url address");
  5. Save the changes

How to set the WordPress domain, with only Database access.

  1. Check the wp-config.php file in the appropriate directory to get the database name.
  2. In phpMyAdmin, click on the database name, then click on the wp_options table.
  3. From there, click on Browse, and look for the 'siteurl' and 'home' variables (recently options 1 and 37).
  4. Change those to the correct address for your blog.

Walk-through for setting the WordPress domain to your temporary URL (web address) or shared SSL address, with only Database access.

  1. Check the wp-config.php file in the appropriate directory to get the database name. [1],[2]
  2. In phpMyAdmin, click on the database name from the left hand menu. [3]
  3. Click the Browse icon for the wp_options table. [4]
  4. Look for the 'siteurl' variable (recently option 1) and click the Edit icon. [5]
  5. Change the http://domain.com/ part to your temporary URL (found in your welcome email) or shared SSL address. [6]
  6. Look for the 'home' variable (recently option 37) and click the Edit icon. [7],[8]
  7. Change the http://domain.com/ part to your temporary URL (found in your welcome email) or shared SSL address.
  8. Done! Now you can use your temporary URL or shared SSL address to preview your blog on the HostGator servers.

Once you change your nameservers (or DNS) to HostGator, and you want your blog to work with your regular domain name, be sure to change these database values back to your normal domain.


Article Comments

Tyler
Can you install Wordpress 2.7 on my cpanel?

I don't know how.

IS there Wordpress already available?

HostGator
You can install that program and many other scripts from your cPanel's Fantastico.

Please watch http://www.hostgator.com/tutorials/wordpress/2.7/installing-wordpress-via-fantastico.htm

Pavel Bogdanov
Very helpful and simple, tnx alot

Paul Buijs
This solved my issue after conducting my own site transfer from GoDaddy. Host Gator transferred all my other sites flawlessly. Host Gator's Word Press support, and their support in general, are making me a happy new customer. I had to say this some where.

Leo
I would like to understand if there is a way to access to the wp-admin part trought shared ssl access (https://nameserver.hostagor.com/~userid/wp-admin/) and the "normal" site trought the http://www.sitename.com?

HostGator
No, WordPress is designed to use only one domain path as the default for all pages, and will redirect to that default URL regardless of what you type.

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment