No announcement yet.

How can i change the URL of my WordPress blog?


Unconfigured Ad Widget

  • Filter
  • Time
  • Show
Clear All
new posts

  • How can i change the URL of my WordPress blog?

    How can i change the URL of my WordPress blog?

  • #2

    There are two most common methods to be used for changing wordpress URLs.

    The first is from the wordpress dashboard :

    First, log in to your wordpress dashboard, >> Go to setting >> General.

    Now you can see in the general setting Wordpress address URL and site URL

    All you need to do is add the address to reach your site in Wordpress Address(URL),

    And the address of the wordpress core files in the Site address(URL).

    Both URLs are the same and generally only differ if you give Wordpress its directory.

    After this, Don't forget to save the change. Now, your Wordpress dashboard is only accessible via a new URL. Also, clear your wordpress cache after updating URLs. Otherwise, you might receive a redirect error.

    You can also change your wordpress URL in the wp-config.php file.

    In the wp-config.php file, add two lines somewhere above the line that shows to stop editing.

    define( 'WP_HOME', '' );
    define( 'WP_SITEURL', '' );

    Now, save your change in the wp-config.php file.

    Now, if you go to your general setting described in 1st method, you are unable to edit from there. So for that, you have to remove those two lines from wp-config.php.