Hi all,
I am trying to set up a local development version of a live site in XAMMP
I exported the live wordpress database and imported it into mysql on my XAMMP set up
I installed a copy of wordpress in the htdocs folder, and copied over the themes folders to the local themes folder. kicked off wordpress and set the database info to the wordpress db that I installed, told me already installed which i gather it should, and then was taken to wordpress login. BUT – no matter what I do it takes me to the Live site and not the localhost site when I try to login.
Any ideas? I must say I’m flying a bit blind. Their is a number of custom database apps on the site, and I’m trying to understand and play with adding new code. I know php, but I don’t quite understand how this all works within the wordpress / theme structure.
Thanks! Andy
[ad_2]
Open wp-config.php file in the WordPress folder, and set site
url(define(‘WP_SITEURL’,’http://localhost:5000/foldername/index.php’);
https://kinsta.com/knowledgebase/wordpress-change-url/#change-wordpress-url-in-wpconfigphp-file
That will allow you to log into the dashboard. Install a plugin called Better Search Replace and use it to fix the URLs.