R
R
Rishat Sultanov2016-12-09 18:00:13
PHP
Rishat Sultanov, 2016-12-09 18:00:13

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)
026548DB.jpg

2)

6509f2fC.jpg

3)

FF632C82.jpg

Answer the question

In order to leave comments, you need to log in

6 answer(s)
I
Ivan Ilyasov, 2016-12-11
@rishatss

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'); //пароль к БД на локалке

To transfer back to the hosting, you need to do the same, only at the end there is one more item:
7) Go to Settings >> SEO and URL >> at the bottom of the page, the button " Generate Robots.txt"

D
Dmitry, 2016-12-09
@plin2s

Most likely, the domain is specified in the engine database and all links are resolved to it.

D
Dmitry, 2016-12-09
@slo_nik

In .hosts try to specify
127.0.0.1 shoper.kg

N
Nikita Kit, 2016-12-09
@ShadowOfCasper

Did you think you were asking their server and not localhost?

V
Viktor Yanyshev, 2016-12-09
@villiwalla

In this case, I would do a search and replace inside all files on the domain, un

P
Puma Thailand, 2016-12-09
@opium

Change the domain in the config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question