Title: WordPress structure
Last modified: April 14, 2020

---

# WordPress structure

 *  [othmnah](https://wordpress.org/support/users/othmnah/)
 * (@othmnah)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wordpress-structure-3/)
 * Hello,
 * I have an issue that seems complicated and I don’t know if it can be solved. 
   I had to backup a website from one host before the hosting plan ends there, and
   migrate it along with the domain to another hosting provider. But being a university
   student with a busy schedule, what I did was the following:
    1. I downloaded 
   all files in the main wordpress folder “public_html”. 2. I exported the database
   from phpMyAdmin as a .sql file. 3. I moved the domain from that hosting provider
   to the new one. The hosting plan ended and the website doesn’t exist anymore.
   Now I’m trying to set up the website on the new host but it’s seems very complicated.
   I tried to copy paste the whole wordpress folder via SFTP as it is, and imported
   the database tables to the new phpMyAdmin area into a new database. But the website
   still doesn’t work.
 * The old database had a custom prefix, while the new database has a new fixed 
   name, and a new prefix.
 * Does anyone has a suggestion on how to bring my website back live using the public_html
   folder and the .sql file, taking into account all the modifications I have to
   do to make sure that wordpress will work correctly?
 * Thank you for your time in advance.
    -  This topic was modified 6 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wordpress-structure-3/#post-12667500)
 * Edit wp-config.php, in the site’s root, to (1) set the table prefix to match 
   your imported database and (2) to verify the DB fields (user, password, host,
   dbname).
 *  Thread Starter [othmnah](https://wordpress.org/support/users/othmnah/)
 * (@othmnah)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wordpress-structure-3/#post-12667572)
 * Sorry I’m a bit lost after I experimented alot with changing these values.
 * Which wp-config file should I edit? the one in the public_html folder of the 
   website I would like to migrate? or the one that I can find in the fresh wordpress
   installation on the new server?
 * Because all fields in the original website’s wp-config file already match the
   tables in the .sql file of the same website.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 1 month ago](https://wordpress.org/support/topic/wordpress-structure-3/#post-12668014)
 * The one on the new server, in the WP installation that’s not working. When you
   migrated to a new host, it’s likely that information changed.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress structure’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/wordpress-structure-3/#post-12668014)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
