Prestashop omigration to new domain ; Migracja Prestashop na nową domnę - poradnik
To change the domain in your PrestaShop store after transferring the database, you need to follow a few steps directly in the database. Here are the detailed instructions:
I once had a similar problem and managed to solve it
do not change anything in the exported file before importing the SQL database. Then import the file into the new database. Follow the steps below. Remember to have a backup copy of the files and database before any changes.
Log in to your database
Log in to your database using a tool such as phpMyAdmin.
Step 1: Change the address in the ps_configuration table
Find the ps_configuration table.
Edit the entries:
Search for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL.
Change the value of both of these entries to the new domain (e.g. nowadomena.pl).
Step 2: Change the address in the ps_shop_url table
Find the ps_shop_url table.
Edit the entries:
Change the value in the domain and domain_ssl fields to the new domain.
Step 3: Clear the cache
After making the changes, to make sure PrestaShop doesn't remember the old address, go to the admin panel and clear the cache:
Go to Configuration -> Advanced -> Performance tab.
Click the Clear cache button.
Step 5: Edit the .htaccess file
If there are references to the old domain in the .htaccess file, update them as well:
Open the .htaccess file located in the store's root directory.
Replace all occurrences of the old domain with the new one.
Do not change anything else. If you manage to log into the store panel, let us know then we will proceed to the next steps
______________________________________________________________
Aby zmienić domenę w sklepie PrestaShop po przeniesieniu bazy danych, musisz wykonać kilka kroków bezpośrednio w bazie danych. Oto szczegółowa instrukcja:
Miałem kiedyś podobny problem i udało się go rozwiązać
przed importem bazy SQL nie azmieniaj nic w wyeksportowanym pliku. Naastępne zaimportuj plik do nowej bazy. wykonaj ponizsze kroki. Pamietaj aby przed wszelkimi zmianami miec kopie zapasowa plików i bazy danych
Zaloguj się do bazy danych
Zaloguj się do swojej bazy danych za pomocą narzędzia takiego jak phpMyAdmin.
Krok 1: Zmiana adresu w tabeli ps_configuration
Znajdź tabelę ps_configuration.
Edytuj wpisy:
Wyszukaj PS_SHOP_DOMAIN i PS_SHOP_DOMAIN_SSL.
Zmień wartość obu tych wpisów na nową domenę (np. nowadomena.pl).
Krok 2: Zmiana adresu w tabeli ps_shop_url
Znajdź tabelę ps_shop_url.
Edytuj wpisy:
Zmień wartość w polach domain oraz domain_ssl na nową domenę.
Krok 3: Wyczyść pamięć podręczną
Po dokonaniu zmian, aby upewnić się, że PrestaShop nie zapamiętuje starego adresu, przejdź do panelu administracyjnego i wyczyść pamięć podręczną:
Przejdź do zakładki Konfiguracja -> Zaawansowane -> Wydajność.
Kliknij przycisk Wyczyść pamięć podręczną.
Krok 5: Edycja pliku .htaccess
Jeśli w pliku .htaccess znajdują się odniesienia do starej domeny, należy je również zaktualizować:
Otwórz plik .htaccess znajdujący się w głównym katalogu sklepu.
Podmień wszystkie wystąpienia starej domeny na nową.
Nic wiecej nie zmieniaj. Jeżeli uda Ci sie zalogowac do panelu sklepu daj znac wtedy przejdziemy do kolenych kroków