Debug PrestaShop errors
Troubleshoot URL issues
If friendly URLs are not working, this is a common issue after updating the IP address/domain of Prestashop as explained in this section.
In order to workaround this issue, you must adapt the .htaccess configuration. That way, the different redirect/rewrite rules defined point to the right hostname. To do so, follow these steps:
Obtain the current domain configured by running the command:
$ grep "PrestaShop current domain" /opt/bitnami/apps/prestashop/conf/htaccess.conf
Update the domain by running the command below:
NOTE: Replace the placeholders OLD_DOMAIN, and NEW_DOMAIN with the values obtained from the previous command, and with the new value you have chosen when updating the hostname on Prestashop, respectively.
$ sed -e "s/OLD_DOMAIN/NEW_DOMAIN/g" /opt/bitnami/apps/prestashop/conf/htaccess.conf
Restart Apache:
$ sudo /opt/bitnami/ctlscript.sh restart apache