How to change WordPress domain

Introduction

It’s very important to have a WordPress website address configured properly. By following this tutorial you will learn how to change your WordPress website URL (example: http://yourdomainname.com/blog) on 000webhost.

What you’ll need

Before you begin this guide you’ll need the following:

  • Access to 000WebHost Account
  • WordPress installed on your 000WebHost Account

Understanding WordPress WP_HOME and WP_SITEURL settings

You can adjust your WordPress website URL address using two settings provided by WordPress:

The instructions provided in this tutorial will not move your WordPress files. You will need to do this manually by accessing your 000WebHost File Manager.

We would highly recommend to obtain a backup of your website database before making any changes. This can be done by navigating to your 000WebHost Members Area and clicking on Database section and exporting your MySQL database to your computer.

Option 1 — Changing WordPress address via WordPress Admin Dashboard

Login to your WordPress Admin Dashboard and navigate to Settings > General section. Under General Settings section find and enter your new WordPress Address (URL) and Site Address (URL).

Click Save Changes button at the bottom and refresh the page. WordPress should now load using the new domain name.

Option 2 — Changing WordPress address via wp-config.php

Login to 000webhost control panel, click on File Upload and choose Upload Files Now button.

Open wp-config.php file (it is located in WordPress installation directory) and add the following code at the end of the file:

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

Don’t forget to replace http://yourdomain.com with your actual details.

Option 3 - Using phpMyAdmin to change WordPress address

Login to your 000WebHost account and access Manage Databases section, locate WordPress database and hit Manage. You will access phpMyAdmin tool.

On the left-hand corner select your WordPress database.

Inside your WordPress database, find wp_options table and click on Browse button. Please note that wp_ may be different depending on your WordPress installation settings.

Find and edit the siteurl or home entries by clicking on Edit button.

If you need more detailed instructions, see this tutorial on how to bulk replace WordPress URLs in MySQL database.

Conclusion

Congratulations, you have just learned how to change your WordPress website URL address. This can be very useful if you would like to change your domain name on your WordPress website or you are moving your WordPress files. Please note that in some cases you may need to clear your browser cookies/cache in order to see changes.

Change URL from 000webhost to my domain URL
How to change the URL Structure in worpdress
How do i recover my word press after changing url from the dashboard
I am Stuck on Waiting for nameservers status for parked domain
My domain does not work
My website desing and hyperlinks are all gone!
Unlinked pointed domain, but still redirects
Wordpress is down after pointing my domain to 000webhost.com
Webpage not reachable
I can access my website home page,but I can't access other page,why
Changing the link address
My own domain redirecting to 000webhostapp.com address
Clicked pages loading as mywebsite.000webhostapp.com/example.html and not my domain/example.html
Domain Parked and URL Problem!
I cant get 000webhostapp off my name domain
Setting wordpress website address
How do i stop my domain name from redirecting to subdomain site.000webhostapp.com
Park Dominio Godaddy configurar dominio en 000webhost
Wordpress problem.
Park Domain is Working but not the way it supposed to be
Activate domain in new members area
Denied access to web resources
Website ERROR . This is what I am come across when I try to access to my website
GoDaddy domain keeps redirecting back to 000webhost domain
Losing contents/ CSS styles - After Domain Change
Can't access wp-admin after trying to park domain (and remove it)
Webpage is not loading after changing nameservers in freenom from cloudflare
Dashboard not loading
Owned domain is redirecting to my subdomain
I keep getting " specified virtual host already exists" error. what to do?
500 error in wordpress admin login page
Domain registered at godaddy.com, hosting at srmplano.000webhostapp.com
How to redirect but not webhostapp
I do not want to install wordpress everytime I want to use it, it deletes website everytime, I want my 2 missing sites back
Problem in redirecting in every page with same custom domain name
Error when clicking "LINK WEBSITE"
My site get redirect to 000 domain
DNS recusado no registro.br
DNS recusado no registro.br
After migration website not completely load
Wp admin page not open on my parked domain
Cannot access dasboard after changing url or cannot access even url
Using Cloudflare for SSL problem
Parked domain doesn't show new domain name
Images missing from forum Tutorials
Alterei o nome do site nas definiçoes
Actualizacion Problema con dominio propio aparece 000webhost?
How to keep custom domain's url (via Cloudflare)?
DNS and Nameserver question
I Need Help Wordpress URL
How to stop the redirect to 000webhost free subdomain?
Problems Loading Content Into Wordpress Panel - 000webhost
Mi dominio solo aparece en la home
I done with my wordpress site but do not see it on others PC then my own
Beingcrazy.in not working
Change domain and fixing social media thumbnails
Help with Wordpress Install url
Dominio particular