• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Change The WordPress Address (URL) & WordPress Site Address (URL)

How To Change The WordPress Address (URL) & WordPress Site Address (URL)

By Sourabh / January 7, 2015 Category: How To, WordPress

WordPress tutorial: How to change WordPress URL – How to change the WordPress address (URL) and WordPress Site address (URL). There are two URL fields of a wordPress website – “WordPress address (URL)” and “Site address (URL)”. These are also known as the “Home” and “Site URL” settings respectively.

WordPress URLs

To summarize, there are two types of WordPress URLs:

  1. The “Site address (URL) – Site URL” setting is the address where the WordPress core files are located.
  2. The “WordPress address (URL) – Home” setting is the address people type in their browser to open the WordPress website.

These settings control where WordPress website is located. They are responsible to the display of the URL in the admin section of the WordPress website page as well as the front end. These are used throughout the WordPress code.

WordPress-Site-URL

Please note the both URL settings should include the http:// part and should not include a slash “/” at the end of the URL.

Changing the WordPress Site URL

First Method

You can easily change the Site URL manually via editing the wp-config.php file. To set the site URL manually in the wp-config.php file, open the file and follow the stpes given below.

Add the following two lines to the wp-config.php, where “example.com” is the correct location of the WordPress website.

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

IMPORTANT: These steps are for strictly for a single WordPress website. If you are using WordPress MultiSite, you will need to manually edit the database to change the URL.

Second Method

The WordPress Site URL settings are located in the application database. If you want to avoid the danger of direct database modifications, you can use “update_option” function (provided by the WordPress developers).

To use this function, simply add the following code to the functions.php file of the current theme of the WordPress website:


update_option('siteurl','http://www.new-site-address.com');
update_option('home','http://www.new-site-address.com');

Once added, simply close the website and reload it from its new location.

You can also change the WordPress Site URL by editing th functions.php via FTP.

Tags: Changing the Site URL, Changing the WordPress Website URL, How to Change WordPress URL, WordPress, WordPress - Changing the Site URL and Home Settings, WordPress tutorial: How to change WordPress URL

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap