I am trying to transfer my live site to a local host on my PC, I did the following:
All the website's files are in
C:\xampp\htdocs\html. I also imported the database and changed env.php and web/secure/url and web/unsecure/url (to 127.0.0.1/html). The problem is that there are errors in the code where
$_SERVER['DOCUMENT_ROOT'] is being used.
I tried changing inside
httpd.conf the document root from
DocumentRoot "C:/xampp/htdocs" <Directory "C:/xampp/htdocs">
DocumentRoot "C:/xampp/htdocs/html" <Directory "C:/xampp/htdocs/html">
And the result was that my site was showing, but all pages are 404.
Am I missing something? maybe some DB configuration or Magento's file for local environment?