I have cloned a whole online website built with prestashop by FTP and hosted it on a XAMPP. I have downloaded the SQL dump and imported it locally with phpMyAdmin. I have changed the conf files to use the local database.
When I go to localhost/myProject it redirects me to the website url. Why is that ? is there another configuration setting to edit? I have already looked in the conf table in database and domain URL was already set to "localhost", even on the online version.
Update : I found a reference to the website in table "ps_shop_url". I changed its values to localhost, now when I go to localhost it tells me "this page has an infinite redirection loop"
In ps_shop_url table you must set domain=localhost
, domain_ssl=localhost
& physical_uri=/myProject/
In ps_configuration set PS_SHOP_DOMAIN_SSL
& PS_SHOP_DOMAIN
to localhost
Also go at BackOffice -> Preferences -> SEO & URLs and click [Save] - this will regenerate your .htaccess file and will add the /myProject/ where needed.
That should be all.