mardi 4 juin 2019

How can I redirect a WordPress website to my localhost with successfully?

I followed the steps of this link and I had the 404 error when I checked my localhost. My website is http://174.138.8.241/

  1. I copied all WP files in the root folder of Wamp
  2. I exported DB from WP website and I imported it into my localhost/phpmyadmin
  3. I updated the URLs inside the WP DB localhost
  4. I updated wp-config from my root localhost folder with the WordPress website database credentials.

Updated URLs in DataBase on my localhost/phpmyadmin:

UPDATE wp_options SET option_value=replace(option_value, http://174.138.8.241/','http://localhost/imosig/');
WHERE option_name='home' OR option_name='siteurl';

UPDATE wp_posts SET post_content=replace(post_content,'http://174.138.8.241/','http://localhost/imosig/');

UPDATE wp_postmeta SET meta_value=replace(meta_value,'http://174.138.8.241/','http://localhost/imosig/');




Aucun commentaire:

Enregistrer un commentaire