M
M
mUchenik2017-04-07 22:12:21
CMS
mUchenik, 2017-04-07 22:12:21

How to open a site locally?

Hello!
Ask for advice from experts.
To conduct experiments with the site, I decided to launch my working site on a local server (openserver) so as not to break the current working site ...
My hoster sent me a separate backup file (archive) from the database and an archive with the files of the site itself.
In openserver, I created a folder called site.ru
Imported data from the working site into the database
In WP-config, I changed the password and login.
When I start openserver, I go to site.ru, the desired page opens (namely site.ru), but when I go to other sections of the menu, I automatically get to the working site.
What needs to be corrected? What would? if locally, then all links were opened under the local name?
When I try to log into the admin panel, I also get to the working site ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vasya Petrov, 2017-04-07
@VasyaPertrov

Install duplicator on your working site and dump it. Then you will unroll it on local.

I
iBird Rose, 2017-04-07
@iiiBird

open the database with a text editor and replace the domain of your site with site.ru everywhere
or you can read more about it in Google. for example here is dimox.name/moving-the-site-on-new-domain

U
Uno, 2017-04-08
@Noizefan

Guys above joking?
hosts file -> 127.0.0.1 site.ru

V
Vasily Petrov, 2017-04-08
@mbpig

Maybe you have all the links spelled like <a href="http://ваш-сайт.ru/страница-сайта"></a>:?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question