Site icon PrestaShop | Magento | CRM Modules

Prestashop How To Change Shop URL

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

Step 3:


✅ 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:

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


🛑 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

 

Exit mobile version