How do I move Prestashop from one folder to another?

Procédure

Why move Prestashop from one directory to another?

You may install Prestashop in the"Prestashop" directory of your FTP space. In this case, your website will be visible at the following address: http://mondomaine.com/prestashop.

This is not necessarily the best solution for remembering the address of your website. What's more, it could have a negative impact on your website.

The best solution is to move your online shop to the root of your web hosting so that it is directly visible at the following address: http://domaine.com

What do you need to move Prestashop?

In order to move your Prestashop online shop, you need to:

Back up your data

The backup operation is not without risk. Before starting, it is important to make a full backup of your website and database.

Exporting your database

1. Connect to your PHPMyAdmin interface using the connection parameters you received by email.

Click on the name of the database on the left-hand side of your interface.

How do I move Prestashop from one folder to another?

2. Click on the"Export" tab to export your entire MySQL database.

How do I move Prestashop from one folder to another?

3. Click on the"Execute" button to start downloading your export file, whose name will be: mabase.sql

How do I move Prestashop from one folder to another?

Modify your export file

1. Open the file you have just downloaded with a text editor

How do I move Prestashop from one folder to another?

2. If your online shop is currently visible at the address"http://mondomaine.com/prestashop/" and you want it to appear under the url"http://mondomaine.com", use the text editor to go to"search/replace". In the"Search" section, enter the"/prestashop/" directory. Don't forget to include the"/" before and after the directory name. In the"Replace with" section, enter"/".

How do I move Prestashop from one folder to another?

3. Save the file you have just modified.

Create a new database

From your LWS customer area, create a new database

Import your database

1. Connect to the PHPMyAdmin interface attached to your new database, left-click on the name of the database you have just created.

Click on the"Import" tab.

How do I move Prestashop from one folder to another?

2. Select the file you have just modified and click on the "Execute" button.

How do I move Prestashop from one folder to another?

Move your web files

1. Connect to your FTP space using FileZilla, and go to the directory of your Prestashop site.

How do I move Prestashop from one folder to another?

2. Select all the files contained in this directory and drag them into the parent directory.

How do I move Prestashop from one folder to another?

Modify the configuration file for your online shop

This step involves modifying the"parameters.php" file located in the"app/config/" directory in order to change the name of the database.

1. Edit the "parameters.php" file located in the "app/config" directory using LWS WebTransfer

How do I move Prestashop from one folder to another?

2. Look for the"database_name" line and enter the name of your new database.

How do I move Prestashop from one folder to another?

Conclusion

You can now move your Prestashop online shop from one directory to another without losing any data and without your shop malfunctioning with LWS. Before moving your website, it is advisable to make a full backup of your web files and database.

Don't hesitate to share your comments and questions!

Rate this article :

5/5 | 3 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

2mn reading

How do I create a Prestashop online shop?

1mn reading

How do you add an https url to your Prestashop shop?

1mn reading

How to change your shop title on prestashop 1.7

0mn reading

How do I reset my prestashop password?


Ask the LWS team and its community a question