sourec.com
target.com
2개의 도메인이 있는데요
source.com/test/ 로 접속하면
target.com 의 페이지로 보이게 하는 설정이 있을까요?
iframe 은 쓰면 안됩니다.
소스를 옮기는 방법말고 없을까요?
|
답변 3개
채택된 답변
+20 포인트
2024-08-20 (화) 08:27:40
1.
https://sourec.com/test 에 접속했을 때 https://target.com 으로 이동하게 하는 것은 미니님a 댓글내용을 적용하시면 되겠습니다.
2.
https://sourec.com/test 접속했을 때 URL 은 https://sourec.com/test 가 그대로 유지되고 https://target.com 접속했을 때와 동일한 내용이 보이도록 하려면 php 의 file_get_contents 함수를 사용할 수 있습니다.
https://target.com/index.php 를 아래 코드로 구성해 보는 것 입니다.
Copy
<?php
echo file_get_contents('https://sourec.com/test');
2024-08-03 (토) 11:45:40
Copy
<VirtualHost *:80>
ServerName source.com
Redirect 301 /test/ http://target.com
</VirtualHost>
RYANRYAN
2024-08-03 (토) 11:45:02
target.com 해당 사이트가... 서버 내부의 다른 사이트 인가요?
답변을 작성하려면 로그인이 필요합니다.