DonDominio

WordPress: Modifying URL from database

You my want change your WordPress URL, this allows you to change the WordPress domain/subdomain, enable or disable “www”, etc. this process can be done by multiple ways but in this guide we will tell you how to change it using phpMyAdmin, we will avoid using third party plugins by doing so.

Note: before following these steps we recommend you to backup your website. You can do it following this guide.

Step 1. Access phpMyAdmin

Once the backup has been done, and if you already know how to access to phpMyAdmin you can already jump to step 2, if not, you can enter phpMyAdmin following these steps:

1. From your customer area go to Hosting > My plans 2. Click on your hosting
 3. Go to the Databases tab on the left side. 4. Now you will see your databases and on the right side the Admin link, click it to open phpMyAdmin.

Step 2. Modifying the WordPress URL

Inside phpMyAdmin go to the “SQL” tab.

phpmyadmin sql

From here you will execute the next SQL sentences to change the URL:

**Note: if you have changed your table prefixes you will have to change it at the SQL queries, our examples will use the default prefix: “wp”.

You will have to change the value ‘http://www.currentdomain.com/' to your new domain/URL value: ‘http://www.newdomain.com/' on the following examples:_**

1. The first query will change the wp_options table:

UPDATE wp_options SET option_value = replace(option_value, 'http://www.currentdomain.com', 'http://www.newdomain.com') WHERE option_name = 'home' OR option_name = ‘siteurl';

Now click Go to execute it.

2. The second query will change entries and pages:

UPDATE wp_posts SET guid = replace(guid, 'http://www.currentdomain.com', 'http:// www.newdomain.com');

3. The next one is to modify the content links:

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.currentdomain.com', 'http://www.newdomain.com');

4. And the last query will change the custom fields:

UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.currentdomain.com', 'http://www.newdomain.com');

Frequent Questions

Why DonDominio?

At DonDominio, we offer you over 20 years of experience in the domain registration, hosting, email, and SSL certificates sector.

We have specialized technical support and advanced tools for businesses, agencies, and resellers.

Additionally, we have multiple layers of security, continuous monitoring, redundancy systems, and proprietary technology designed to ensure the availability, integrity, and protection of data.

How do I know if a domain is available?

You can find out if a domain is available through a search in our search engine.

How can I register a domain with DonDominio?

Registering a domain at DonDominio is a simple process. Enter the name you want in our search engine to check if it is available, select the appropriate extension, complete the registration, and make the payment.

If you are not sure about the name you want to register, but have an idea in mind, you can activate the AI search in our search engine. In seconds it will provide you with various name options that fit your project.

Once registered, the domain will be linked to your account, and you can use it for a website, email, or any digital project.

How can I create my website?

Steps to create your project at DonDominio:

  1. Search and register a domain for your project.
  2. Create your website and email accounts with our hosting plans.
  3. Protect your project by adding an SSL certificate.
Do you offer specialized technical support?

We have a specialized technical support department with over 20 years of experience in resolving technical issues. All our support agents are real people; we do not use chatbots or AI agents to handle inquiries.

Do I have any benefits as a DonDominio client?

As a DonDominio client, you will have access to special discounts based on the volume of domains you manage.
For more information about this type of discount, check the volume discounts section.

Additionally, you have at your disposal our reseller services which include: developer API, white label panel, and compatibility with WHMCS.

Start your website today

Buy your ideal domain and start your project with a few clicks

Search my domain