I need to create a copy of a WordPress in a local environment.
I have alread done some research and
Included the following line in wp-config.php (at it's start, also tried at the end)
define('WP_SITEURL','http://mydomain.local'); define('WP_HOME','http://mydomain.local');
Note sure if these URLs should be different.
Changed
siteurl
andhome
to http://mydomain.local in database in table [prefix]_optionsI have also checked the .htaccess file and it contain nothing that refers to the online domain.
but it keeps redirecting me to the online domain.