Error when Restoring a wordpress website

Status
Not open for further replies.

comebacktome

Active Member
520
2010
31
0
Hello! I have 2 files: backup.tar.gz (home page) and database wp1.sql.gz
I want to restore from these files. After upload through cpanel backup, it gave me Error establishing a database connection. So I edited the wp-config to change databse name, user, pass but there're no posts:" Page Not Found Sorry, but you are looking for something that is not here." I can still see the posts from phpmyadmin.
Is there anything I did wrong? Please help me!
Thank you!
 
8 comments
hey

create .htaccess file in root directory add ad this code

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
 
Dear comebacktome,

The best way to move a WP site :

Step 1) Backup the database using PHPMyadmin
Step 2) Backup your template and uploads folder along with wp-config.php file.

You have to do below steps in the new site(where you want to move)

Step 3) Do a fresh new installation of WordPress
Step 4) Create a new DB and restore the sql file through PHPMyadmin
Step 5) Restore the wp-config.php file and edit it with the new DB details (created on step 4)
Step 6) Restore your templates folder and uploads folder.
Step 7) Delete the database created on step 3.

Done!

Best Regards,
Dansh
 
hey

create .htaccess file in root directory add ad this code

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks but the .htaccess file is already in the www folder and the code in this file is like that
 
Status
Not open for further replies.
Back
Top