Hi. Today we're gonna look at how to change your website URL in case you messed up. In this case, yes, I messed up. That is why this post existed. To reminisce about my mistake. It's okay, failure is the mother of success. Moving on.
First, you need to log in to your WordPress account. Go to Settings > General > Change both WordPress URL and Site Address URL.
It'll probably log you out. No worries.
Next, go to cPanel > search for Domains > click on the "Manage" button.
You need to look for the 'Document Root' file and correct the URL to match the changes you made in WordPress.
Can't seem to find it? It's okay, there's another way. Follow the steps below:
From cPanel, search and open File Manager > locate the WordPress Installation Directory. This is typically within the 'public_html' directory.
Click the 'wp-config.php' file and from the top navbar, choose Edit.
After it redirected you to the coding page, it's time for you to update your site URL.
Look for lines that define the site URL and home URL like so:
Then. change it to the correct URL that you desire. Save your changes and try accessing your website again.
No comments:
Post a Comment
Komen atau sebarang pertanyaan di sini :)