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)
Note sure if these URLs should be different.
hometo http://mydomain.local in database in table [prefix]_options
I 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.