URL Change

  • Unknown's avatar

    I changed the url of my website, knowing I had the domain name already purchased and my website has been unable to process the change and subsequently locked me out of the page. I cannot access my site or the admin pages to fix this problem.

  • Unknown's avatar

    Did you change the URL in WordPress General Settings in the WordPress Admin? If so, there is a lot more to it than just changing your domain name there. You would have to update the database as well. To get back to where you were (if you changed the URL in WordPress general settings) you will need FTP access. Open the config.php file and add the following code (replacing the example domain with your ORIGINAL domain).

    define( ‘WP_HOME’, ‘http://example.com’ );
    define( ‘WP_SITEURL’, ‘http://example.com’ );

    After getting it to where your old domain is working again, have a look at this instruction . They should help get you going in the right direction. Good luck!

  • Hi there,

    Please contact your hosting provider for help with this. We’re not able to help with this in the WordPress.com forums.


    @ninjanerdles123
    ,

    After getting it to where your old domain is working again, have a look at this instruction

    The https://en.support.wordpress.com/changing-site-address/ page you link to there only applies to sites hosted on WordPress.com. That page will not be helpful in any way to the OP in changing the URL on their self-hosted site. They need to refer to their hosting provider’s process for doing that.

  • The topic ‘URL Change’ is closed to new replies.