close

How to quickly recover your WordPress site after a URL address change in settings

How to quickly recover your WordPress site
Spread the love

How to quickly recover your WordPress site after a URL address change in settings

URLs are important to the construction of your website, so you want to be sure you choose them carefully in the beginning. Changing the URL address later can be problematic, particularly if you’re changing from one subdomain to another.

If you do change your URLs at some point, WordPress gives you plenty of tools to help you recover and maintain your site’s integrity, even if it means making significant changes to your site structure in the process.

The key to successfully recovering your WordPress site will depend on how much time and effort you’re willing to spend on it.

Do not panic

The first thing you need to do is not panic. This is a common occurrence and it can be easily fixed. Just follow the steps below and you’ll have your WordPress site up and running in no time.

Look through all of the main areas for wp-config.php

The wp-config.php file is one of the most important files on your WordPress site. This file contains information about your database, including its name, password, and location.

If you change the URL of your WordPress site, you will need to update this file so that WordPress can connect to the new database.

Here are the five main areas where you should look for the wp-config.php file:
1. The root directory of your WordPress site

Backup up your database

Before you make any changes to your WordPress site, it’s always a good idea to backup up your database. That way, if anything goes wrong, you can easily restore your site to its previous state.

WordPress have a free backup plugin and can be installed on your WordPress backend. Use the link below to download: https://updraftplus.com/

 

 

Log into cPanel/FTP and navigate to /public_html/.

In the /public_html/ directory, locate the .htaccess file. Right-click on the file and select Code Edit from the menu. A pop-up window will appear.

Restore .htaccess, index.php, xmlrpc.php, and install phpMyAdmin

slyedutech.com
If you’ve recently changed the URL address of your WordPress site in the settings, there are a few quick and easy steps you can take to recover it.

First, restore your .htaccess, index.php, and xmlrpc.php files from a backup. If you don’t have a backup, you can easily create one by installing phpMyAdmin.

you have these files restored, simply go to the Settings tab in your WordPress dashboard and update the Site Address (URL) field.

Re-upload images directory if necessary

If you’ve changed the URL of your WordPress site, you’ll need to re-upload your images directory so that all of your images are accessible on the new URL.

To do this, simply go to your old WordPress site, export the images directory, and then upload it to the new WordPress site.

This process should only take a few minutes and will ensure that all of your images are accessible on the new URL.

Reinstall themes from back up ZIP file

It’s always a good idea to have a back up plan, and when it comes to your WordPress site, that means having a back up ZIP file of your themes. If you need to reinstall your themes from a back up ZIP file, here’s how….

Assign Permissions to wp-config.php again if necessary

The wp-config.php file is located in the root directory of your WordPress install. If you have recently changed the URL of your WordPress site, you will need to edit this file and update the following lines

Change the Site Address back in Settings>General

If you’ve accidentally changed your WordPress Site Address and can no longer access your site, don’t worry! You can easily fix this by going into your Settings and changing the Site Address back to what it was. Just follow these steps:

1. Log into your WordPress Dashboard.
2. Go to Settings > General.
3. Change the Site Address back to the correct URL.
4. Save your changes.
5. That’s it! Your site should now be accessible at the correct URL.

FAQs

1. How do I change my WordPress URL?

To access Settings » General, simply log in to your WordPress dashboard. The “WordPress Address” and “Site Address” fields are where you may edit the URLs for your WordPress sites. Most websites will have the same URL for both of them. Then, to save your URL changes, click the “Save Changes” button. 

NOTE: Is not advisable to change URL, you website may crash with a blank page error.

2. How do I update my WordPress URL?

Find the Settings tab by navigating. To edit an already published page, use the edit icon next to the page’s URL. To ensure that a redirect will be generated from the old URL of the page to the new one, click Update in the dialog box. Click the Domain dropdown menu and choose a new domain to change the domain of your page.

3. What is the difference between a WordPress Site Address (URL) and a WordPress Home Address (URL)?


4. Why did my WordPress Site Address (URL) change?
5. How do I fix my WordPress Site Address (URL)?

slyedutech.com

 

Recommended reading: Digital Organizing: Using Technology to Build Power Online

Read also: How to quickly recover your WordPress site

Tags : How to quickly recover your WordPress site
Slyzombe

The author Slyzombe

1 Comment

Leave a Response

Open chat
1
Need Help?
Scan the code
Hello!
How can we help you?