Follow along this article to learn how to update your WordPress Address URL and Site Address URL in your WordPress dashboard or wp-config.php. Updating the WordPress Address and Site Address URL field will affect the actual URL your site's visitors will use to access your website. More often than not, the reason why people want to update the WordPress Address and Site Address URL is to add or remove the www. in their site's URL address.
You will need to be able to either 1) access your WordPress dashboard or 2) access your wp-config.php via File Transfer Protocol (FTP) or File Manager in cPanel.
Tip: After changing the address, also make sure your domain redirects to the same version (see How to Force HTTPS in cPanel).
How to Add www. to Your Site's URL (Video)
Using the WordPress Dashboard
- Log into your site's WordPress dashboard - yourdomain.com/wp-admin or yourdomain.com/wp-login.php
- Navigate to Settings > General in the left navigation
- Update the WordPress Address (URL) and Site Address (URL)
- Click the Save Changes button at the bottom of the page
NOTE: Use https:// in both fields. Every PeoplesHost cPanel hosting account includes a free SSL certificate (AutoSSL); before switching, confirm it is active for both yourdomain.com and www.yourdomain.com in cPanel > Security > SSL/TLS Status. See How to Get a Free SSL Certificate with AutoSSL.

Updating Your Site's wp-config.php
- Log into your cPanel Account
- Find the FILES heading and click File Manager icon
- Click through to your public_html
- Locate the wp-config.php file in the public_html
- Right-click > Edit
- Add the following lines of code to the wp-config.php file (above the line that says "That\'s all, stop editing!") and Save Changes
define('WP_HOME','https://www.yourdomain.com');
define('WP_SITEURL','https://www.yourdomain.com');
Of course, remember to replace yourdomain in the above lines of code with your domain name.




Once you have updated your WordPress Address URL and Site Address URL you will be prompted to log into your WordPress site again since the URL has been changed. If you have any questions or need assistance making this change please submit a ticket and a WordPress support specialist will assist you.
Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.