I moved my live Wordpress site from my hosting provider to localhost but when I go to load the website it takes me to the wordpress installation page. When I try to go to wordpress install I am hit with an 403 Forbidden message.
I moved wordpress by downloading the FTP files.
I am running XAMPP on windows. I have edited the wp_options database table and changed references from the live site to localhost. I have also updated wp_config.php.
CodePudding user response:
The easiest way is to install the "Duplicator" plugin in your working Wordpress installation. From within that you can easily create a ZIP package and an installer file, copy that to any other server (including localhost) and install your Worpress site there after you filled in the settings of your local database.
CodePudding user response:
Hi You need to change wp_options table in your database, In wp_options siteurl and home option value to your localhost url.
also check wp_config.php file if it contain your live url. After changing those url run your site on localhost, it will fix your problem, if still you get 403 error then check file permission.
CodePudding user response:
very easy to move wordpress from one server to another
Install clean wordpress on your new destination (make sure to set-up the databse also)
Copy the
wp-content
folder from your source, and replace thewp-content
folder of your destinationExport the database of your source, drop all the tables in your destination, and import that database from your source to your destination.
update
site_url
andhome_url
insidewp_options
table in your destination
DONE!
in case you want to update all URLs from your source to the URLs of your destination.
You can simply edit the sql file before importing to your destination database using something like notepad and find replace
e.g.
find yoursource.com
replace all with yourdestination.com
or you can use update url plugin,