T
T
T_y_l_e_r2016-10-05 21:00:33
linux
T_y_l_e_r, 2016-10-05 21:00:33

How to organize the "cloning" of the site?

There is a site1.zz domain, it is necessary that the site1.zz site with all paths be opened on the site2.zz domain, but a js script is inserted into the html, and it is better to be able to edit the content on the fly
How to organize this?
upd
This should be done gracefully not on PHP
, the site can be https and its paths are not known

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Maxim, 2016-10-06
@m77x

see the answer https://toster.ru/answer?answer_id=882590#answers_...

S
Sergey Pugovkin, 2016-10-05
@Driver86

curl on a server with the site2.zz domain
Only if the site1.zz site works only via https, then "cloning" is unlikely to work

R
Rou1997, 2016-10-05
@Rou1997

You can redirect the path to index.php using REQUEST_URI.htaccess, also look for ready-made anonymizer scripts, the principle is the same.

A
Alexander Sisyukin, 2016-10-06
@Caarl

Iframe , curl and dt and so on ... I would stupidly copy it to myself wget -k -l 10 -r site.ru and already edit it as I wanted. I would wrap it in ob_serv and spin it there as I wanted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question