Answer the question
In order to leave comments, you need to log in
How to get around the problem when transferring a site from a host to a LAN?
Good afternoon, gentlemen :)
In general, I used the prestashop engine on the host :) I exported
it to my PC.
I wanted to deploy on local, I see a redirect to the host where my test period ended.
It became interesting already, it was the hosters who poured something into the project or some kind of engine cache :)
1)
2)
3)
Answer the question
In order to leave comments, you need to log in
To transfer Prestashop site from hosting to local. You need to do the following:
1) Clear the cache.
Go to /prestashop/cache/smarty/cache and delete everything except index.php and last_template_flush.
Go to /prestashop/cache/smarty/cache/compile and delete everything except index.php and last_flush.
Go to /prestashop/themes/your_theme/cache and delete everything except index.php.
2) Change the domain in the database.
We change either through a text editor, or in advance in phpMyAdmin.
Table ps_shop_url columns domain and domain_ssl. Change the domain to localhost (without http:// and other extra characters.)
in a text editor
and change to the following:
define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'prestashop'); //название БД на локалке
define('_DB_USER_', 'root'); //ваш логин к БД а локалке
define('_DB_PASSWD_', '123'); //пароль к БД на локалке
Most likely, the domain is specified in the engine database and all links are resolved to it.
Did you think you were asking their server and not localhost?
In this case, I would do a search and replace inside all files on the domain, un
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question