The solution listed bellow is tested for PS 1.7.4.x and up. Feel free to also see the video blow for better understanding of how whings should be done.

Moving prestashop site to new domain / localhost step by step

  1. Download prestashop files from the live server
  2. Export database with default settings
  3. Create localhost database with the same name
  4. Import database copy
  5. Copy downloaded files into new location
  6. Change database_host, database_user and database_password in the app/config/parameters.php file
  7. In ps_configuration table:
    • Change PS_SHOP_DOMAIN to localhost:8888 (or sitename.test for laragon users)
    • Change PS_SHOP_DOMAIN_SSL to localhost:8888 (or sitename.test for laragon users)
    • Change PS_SSL_ENABLED to 0 (or sitename.test for laragon users)
  8. In ps_shop_url:
    • Change domain to localhost:8888 (or sitename.test for laragon users)
    • Change domain_ssl to localhost:8888 (or sitename.test for laragon users)
    • Change physical_uri to the PS location (in xampp it could be something like this  /WWW/prestasitedir/ and for laragon just /)
  9. Delete .htaccess from the root folder
  10. Disable and enable once again Friendly URLs in admin settings
  11. Remove / ranem cache at yoursiteroot/var/cache

src:
https://stackoverflow.com/questions/50755521/how-to-move-live-prestashop-site-to-localhost
https://www.hostinger.com/tutorials/prestashop/how-to-change-prestashop-domain
https://www.prestashop.com/forums/topic/778459-moving-pointing-prestashop-17-to-new-domain/

0
Would love your thoughts, please comment.x
()
x