Skip to main content

WordPress: Changing your SITE URL in wp-config.php

Justin Catello avatar
Written by Justin Catello
Updated over 3 weeks ago

If you ever need to change your WordPress site’s URL—whether you’re moving to a new domain or fixing a URL issue—one of the easiest ways to do it is by editing the wp-config.php file. This simple method allows you to set your SITE URL and Home URL directly, ensuring everything is correctly linked. In this article, we’ll show you how to make this change quickly and safely.

Using FTP or File Manager, open the 'wp-config.php' file and add the following code before this line: /* That's all, stop editing! Happy publishing. */

define('WP_HOME','https://www.domain.com');
define('WP_SITEURL','https://www.domain.com');

Make sure to replace domain.com with your actual new domain and then save the file.



Congratulations! You've successfully changed your home url and site url in wp-config.php file.

If you have any questions, please don’t hesitate to contact our team via live chat.

For technical inquiries, please feel free to reach our support team by emailing support@bigscoots.com from your registered email or by submitting a support ticket.

Did this answer your question?