특정경로 강제로 이동 시키기 질문드립니다. 채택완료
이 도메인으로 접속했을때 https://search.naver.com/p/crd/rd?m=1&px=677&py=290&sx=677&sy=290&p=UGG%2Bewp0YidssvaEbuwssssssGR-181033&q=%EB%82%98%EB%88%84%EB%A6%AC%EB%A7%88%EC%BC%93&ie=utf8&rev=1&ssc=tab.web.webkr&f=webkr&w=webkr&s=JKtxjUa7NZnTf6hwbQVOiA%3D%3D&time=1603157780301&bt=4&a=web_all*w.url&r=11&i=a00000fa_78115a3e237e76d69a19af80&u=https%3A%2F%2Fwww.nanurimarket.com%2F%3Fdevice%3Dmobile" onclick="return goOtherCR(this, 'a=web_all*w.url&r=11&i=a00000fa_78115a3e237e76d69a19af80&u='+urlencode(this.href ? this.href : location.href))" target="_blank">https://도메인/?device=mobile
뒤에 /https://search.naver.com/p/crd/rd?m=1&px=677&py=290&sx=677&sy=290&p=UGG%2Bewp0YidssvaEbuwssssssGR-181033&q=%EB%82%98%EB%88%84%EB%A6%AC%EB%A7%88%EC%BC%93&ie=utf8&rev=1&ssc=tab.web.webkr&f=webkr&w=webkr&s=JKtxjUa7NZnTf6hwbQVOiA%3D%3D&time=1603157780301&bt=4&a=web_all*w.url&r=11&i=a00000fa_78115a3e237e76d69a19af80&u=https%3A%2F%2Fwww.nanurimarket.com%2F%3Fdevice%3Dmobile" onclick="return goOtherCR(this, 'a=web_all*w.url&r=11&i=a00000fa_78115a3e237e76d69a19af80&u='+urlencode(this.href ? this.href : location.href))" target="_blank">?device=mobile는 지우고 강제로 https://도메인으로 접속되게 하는 방법이 있을까요?
답변 2개
if ($_GET['device']=='mobile'){
?>
<script>location.href='https://search.naver.com/p/crd/rd?m=1&px=677&py=290&sx=677&sy=290&p=UGG%2Bewp0YidssvaEbuwssssssGR-181033&q=%EB%82%98%EB%88%84%EB%A6%AC%EB%A7%88%EC%BC%93&ie=utf8&rev=1&ssc=tab.web.webkr&f=webkr&w=webkr&s=JKtxjUa7NZnTf6hwbQVOiA%3D%3D&time=1603157780301&bt=4&a=web_all*w.url&r=11&i=a00000fa_78115a3e237e76d69a19af80&u=https%3A%2F%2Fwww.nanurimarket.com%2F%3Fdevice%3Dmobile" rel="nofollow noreferrer noopener" target="_blank">https://도메인/';</script>
<?php
exit;
}
댓글을 작성하려면 로그인이 필요합니다.
if ($_GET['device']=='mobile'){
?>
<script>location.href='https://search.naver.com/p/crd/rd?m=1&px=677&py=290&sx=677&sy=290&p=UGG%2Bewp0YidssvaEbuwssssssGR-181033&q=%EB%82%98%EB%88%84%EB%A6%AC%EB%A7%88%EC%BC%93&ie=utf8&rev=1&ssc=tab.web.webkr&f=webkr&w=webkr&s=JKtxjUa7NZnTf6hwbQVOiA%3D%3D&time=1603157780301&bt=4&a=web_all*w.url&r=11&i=a00000fa_78115a3e237e76d69a19af80&u=https%3A%2F%2Fwww.nanurimarket.com%2F%3Fdevice%3Dmobile" rel="nofollow noreferrer noopener" target="_blank">https://도메인/?device=pc';</script>
<?php
exit;
}
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인