WP Live to WP Local – Testing purposes
-
I made a copy of DB from PHPMyAdmin and the site via FTP. — Using XAMPP I set up the DB on localhost/PHPMyAdmin and htdocs/mysite … I added SQL query to my DB
UPDATE wp_options SET option_value = replace(option_value, ‘https://www.mysite.com’, ‘https://localhost/mysite’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET post_content = replace(post_content, ‘https://www.mysite.com’, ‘https://localhost/mysite’);
UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://www.mysite.com’, ‘https://localhost/mysite’);
and in wp-config.php file
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wp_mysite’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ”)All this seems to work as i see the display on the url https://localhost/mysite
yet when i type https://localhost/mysite/wp-admin to log in it redirects me back to my live site.. any direction will be
- The topic ‘WP Live to WP Local – Testing purposes’ is closed to new replies.