PrestaShop

How to Change PrestaShop Domain (Main URL)

Introduction

Are you moving your PrestaShop e-commerce website to a different domain? In this case, you have to update PrestaShop with the new domain name. This tutorial explains what changes need to be done in order to change domain used on PrestaShop.

What you’ll need

Before you begin this guide you’ll need the following:

  • Access to PrestaShop administrator dashboard (Option 1)
  • Access to your hosting control panel (Option 2)

Option 1 — Changing PrestaShop Domain Name via Admin Dashboard

Access your PrestaShop Admin dashboard and click on Preferences button.

PrestaShop-changing-domain

Inside Preferences section, click on SEO & URLs button.

PrestaShop-changing-domain

Scroll down and you will find SET SHOP URL section.

Inside of Shop domain and SSL domain text boxes, type the new domain name that you want PrestaShop to use.

Do not change BASE URL value, unless you moved PrestaShop to a different folder. For example, if you installed PrestaShop in the document root directory (usually it’s public_html), then the base URL should be /. Alternatively, if you installed PrestaShop in a subdirectory (for example, public_html/prestashop), the base URL is /prestashop, where path represents the folder name.

After that, hit Save button and PrestaShop will be updated with your new domain name.

PrestaShop-changing-domain

Option 2 — Changing Domain Name on your PrestaShop using phpMyAdmin

Yet another way to change PrestaShop domain is to use phpMyAdmin. Login to your hosting control panel and access phpMyAdmin.

Once you have phpMyAdmin open, select your PrestaShop database.

Select PrestaShop Database

Find the table named configuration and click on Browse button.

PrestaShop-changing-domain-using-phpmyadmin

Locate the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL and click on Edit button.

PrestaShop-changing-domain-using-phpmyadmin

Replace the old domain name with your new domain name and click on Go button. Please note that you have to replace the old domain name with your new domain name in both PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL records. After that, PrestaShop will be updated with your new domain name.

PrestaShop-changing-domain-using-phpmyadmin

Conclusion

Congratulations, you have just learned how to change your PrestaShop domain name. Now you can use your new domain name on your existing PrestaShop installation.

About the author

Merkys M.

Merkys is a server administrator and Linux expert at Hostinger. He keeps everything up & running while tackling advanced server management issues. Besides that, he’s a big fan of blockchain technology, web development, and bodybuilding.

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Have a website?

Join thousands of webmasters who get our free newsletter with tips on how to drive more traffic and revenue to their websites!

Please wait...

Thank you for sign up!

More in PrestaShop
How to Reset PrestaShop Admin Password

Close