In PrestaShop, changing the Shop URL (domain or folder) must be done carefully to avoid breaking the store.
Here is the safe step-by-step method:
✅ Method 1: Change Shop URL from Back Office (Recommended)
Step 1: Login to Admin Panel
Go to:
Shop Parameters → Traffic & SEO → Set Shop URL
Step 2: Update These Fields
- Shop domain →
example.com - SSL domain →
example.com - Physical URI →
/(or/folder/if installed in subfolder)
Step 3:
- Click Save
- Clear cache:
Advanced Parameters → Performance → Clear Cache
✅ Method 2: Change URL Directly in Database (If Admin Not Accessible)
Open phpMyAdmin and go to database.
Find table:
ps_shop_url
(Change ps_ if your prefix is different)
Update:
domaindomain_sslphysical_uri
Example SQL:
UPDATE ps_shop_url
SET domain = 'example.com',
domain_ssl = 'example.com',
physical_uri = '/'
WHERE id_shop_url = 1;
⚠️ Important After Changing Domain
1️⃣ Update config files (if domain changed)
Edit:
/app/config/parameters.php (PrestaShop 1.7+)
/config/settings.inc.php (PrestaShop 1.6)
If needed, update domain manually.
2️⃣ Delete Cache Manually (Very Important)
Delete contents inside:
/var/cache/ (PS 1.7+)
/cache/smarty/compile
/cache/smarty/cache
3️⃣ Regenerate .htaccess
Back Office → Traffic & SEO
Disable Friendly URL → Save
Enable Friendly URL → Save
🚀 If Moving From:
👉 HTTP → HTTPS
- Enable SSL in:
Shop Parameters → General → Enable SSL - Force SSL on all pages
🛑 Common Problems
| Problem | Solution |
|---|---|
| Site redirects to old domain | Clear cache + update database |
| 500 error | Check .htaccess |
| Images not loading | Clear cache + regenerate thumbnails |
| Admin not opening | Update ps_shop_url table |
