I want to put a live wordpress site in my local environment, let's say for example the site url is www.test.com , this opens the page, so when I normally set up a local environment in /var/www/html (using lamp btw) i create a directory let's say test (/var/www/html/test) and update in the database the siteurl and home links to http://localhost/test
So when I write in the browser http://localhost/test it will open....but I want to change the hostname and url directy, I want to have in my local environment something like http://local.test.com