Home / Prestashop / How to Move PrestaShop from a Subfolder to the Main Domain

How to Move PrestaShop from a Subfolder to the Main Domain

Learn how to move prestashop from a subfolder to the main domain on PrestaShop 8.x with clear steps, prerequisites, verification, and common troubleshooting.

Views: 22 Unique: 18 Updated: 2026-03-18

What this procedure is

How to move a PrestaShop store from a subfolder (e.g. /shop) to the domain root (/) without breaking URLs.

Applies to: PrestaShop 8.x.

Why you would do this

  • The store will be the main website.
  • Improve URL structure.

Prerequisites

  • Full backup.
  • Files and database access.
  • Maintenance mode.

Quick diagnosis (before you change anything)

1) Identify current and new URL

Expected result: know what to change in “Set shop URL”.


Move from subfolder to root

Step 1) Enable maintenance mode

Avoid orders during the move.

Step 2) Move files

Move files from /shop to the domain root.

Step 3) Update shop URL

Use “Set shop URL” in Back Office to remove the subfolder.

Step 4) Regenerate .htaccess and clear cache

Regenerate .htaccess and clear cache.

Final verification

  • Site opens at root.
  • Products/categories load.
  • No 404s.

If something doesn’t work (common issues)

Categories show 404

  • Regenerate .htaccess.
  • Check Friendly URLs.
  • Clear cache.

Best practices

  • Keep 301 redirects from /shop to / if it was indexed.
  • Test in staging.
Back to category