WordPress.org

Support

Support » How-To and Troubleshooting » How do I change my websites domain URL

How do I change my websites domain URL

Viewing 8 replies - 1 through 8 (of 8 total)
  • which option is best for me to use?

    any one of them should work. Whatever you feel more comfertable with

    I feel extremely stupid as i am unsure on what to do in order change everything.
    I changed my site url the other day although I lost the website and couldn’t log back on. I managed to sort it in the end but I am a bit apprehensive to make the same mistake again. Please could you help me a bit more and give me some guidance, as this is the first time I have had to change the URL/domain.

    first, try the wp-config.php option. It should be pretty easy. wp-config.php should be located in your WP root folder. Before you modify the file, make backup of it, in case.

    I tried this but it hasn’t worked it doesn’t seem to redirect the website to the new domain

    1. What have added to the wp-config.php ?
    2. Where in that file have you added?

    Try adding above the “stop editing” so it looks like this:
    define(‘WP_HOME’,’http://www.thesource-uk.net’);
    define(‘WP_SITEURL’,’http://www.thesource-uk.net’);

    /* That’s all, stop editing! Happy blogging. */

    This does not seem to work for me, is it wrong?

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don’t have to use the web site, you can just copy this file
    * to “wp-config.php” and fill in the values.
    *
    * @package WordPress
    */

    define(‘WP_HOME’,’http://www.thesource-uk.net’);
    define(‘WP_SITEURL’,’http://www.thesource-uk.net’);

    // ** MySQL settings – You can get this info from your web host ** //

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How do I change my websites domain URL’ is closed to new replies.