Prestashop 1.6 Change URL (domain name) to Another One

“Prestashop redirects to old domain after changing it in Database”
“Where to change url (domain name) to another one in prestashop 1.6.”

Problem: on the new domain name it keeps redirecting to the old domain name… even though I changed it in the db.

In the database:
ps_configuration
MB_CANCEL_URL
PS_SHOP_DOMAIN
PS_SHOP_DOMAIN_SSL

or back-end
domain_change_1

domain_change_2

If go to admin login page I get a server error!
71cdce198dba98b9d2c4fd891f2b2443

Try clearing cache

/cache/cashref/*
/smarty/cache/*

Turn on development mode

PD_DEV_MODE in /config/defines.inc.php

voila.
78c1d54687d1672dfb27e2a50174c892

Fatal error: Uncaught –> Smarty: unable to write file /opt/bitnami/apache2/htdocs/cache/smarty/compile/a9/ac/07/wrt564a841fe34ca9_00498148 <– thrown in/opt/bitnami/apache2/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

only chaning permissions for entire cache folder to 777 worked…

sudo chmod 777 cache/*

Refs:
https://danilodellaquila.com/blog/change-or-move-prestashop-site-domain-name

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *