WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Domain name change (6 posts)

  1. hamilcarbart
    Member
    Posted 2 years ago #

    I have a working site http://njccoaching.co.uk but I want to change the domain name a new one I've registered http://mm4change.co.uk. I've read the articles on changing domain name/site url but I can't login to wordpress after making the changes. It says waiting for mm4change.co.uk This is what I have done on the wordpress database

    1. Using cPanel I,ve edited siteurl and home in wp_options table and changed the entry to http://mm4change.co.uk.

    2. I've added these lines to wp-config.php as WordPress Address (URL)and Site Address (URL) are greyed out in general tab
    define('WP_HOME','http://mm4change.co.uk/main');
    define('WP_SITEURL','http://mm4change.co.uk/main');

    Do I need to do more than this? cpanel Main Domain is njccoaching.co.uk. Does this not change to mm4change.co.uk, and does my wordpress login now become http://mm4change.co.uk/main/wp-login.php. I really don't understand what I need to do.

    regards Bart

  2. Niels Pilon
    Member
    Posted 2 years ago #

    Hi Bart,

    This is the way that I've always done it, and it always worked:

    1. Edit the url field in the wp_options table to the new domain
    2. Transfer all files to the new domain (optional)
    3. Login to the administrator page at the new domain
    4. Settings -> General -> edit the new URL to change all the links to the new domain

    Done.

  3. webbrewers
    Member
    Posted 2 years ago #

    Bart,
    Add domain name to the hosting account
    Depending on the host, the new domain needs to be "primary"
    Make sure it's pointed at the correct ip address
    Make sure nameservers are set correctly
    Ping the domain and see if it's found. If not, check with your host on what the configuration should be.
    Hosts like Go Daddy claim they automatically configure things correctly when you add a domain, but I've found they don't.

  4. hamilcarbart
    Member
    Posted 2 years ago #

    Hi
    thanks for the replies. The problem is someone else set up the hosting originally, and it looks like I can't add another domain with my current settings. My new domain is registered with godaddy, but not hosted there. Is it easy to transfer the new domain to the hosting account?. Apologies if this is a no-brainer, but I haven't done this before

    Bart

  5. webbrewers
    Member
    Posted 2 years ago #

    You have to be able to change the domain even if you can't add another one (though most hosts allow that). If you think about it, the site can't be found unless the domain is associated with it.

  6. hamilcarbart
    Member
    Posted 2 years ago #

    Resolved with help from hosting company. I hadn't the rights to change domain, but now have

    Bart

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.