본문 바로가기

Script

티스토리 도메인 변경하고 매칭 시키는 방법

이번에 블로그 도메인을 변경하고 기존의 블로그에 접속시 새로 생성한 도메인으로 접속하도록 변경한다.

 

 

티스토리 도메인 변경하고 매칭 시키는 방법

var url1 = "bizcell.tistory.com";
var url2 = "tooltip.tistory.com";

if( document.URL.match(url1) ) document.location.href = document.URL.replace(url1, url2);

 

다음 주소를 클릭해 보자.

기존에 관리하던 블로그 주소로 클릭하면

https://bizcell.tistory.com
https://bizcell.tistory.com/65
https://bizcell.tistory.com/guestbook
https://bizcell.tistory.com/entry/티스토리-댓글-URL주소-자동링크-삽입
https://bizcell.tistory.com/entry/윈도우-10-20H1-20H2-21H1를-21H2의-탐색기-아이콘-변경-방법

 

아래의 주소로 변경되어 접속된다 ^^

https://tooltip.tistory.com/65
https://tooltip.tistory.com/guestbook
https://tooltip.tistory.com/entry/티스토리-댓글-URL주소-자동링크-삽입
https://tooltip.tistory.com/entry/윈도우-10-20H1-20H2-21H1를-21H2의-탐색기-아이콘-변경-방법
 

변경을 원하는 url1과 url2에 도메인주소를 입력.
if 부분에서 url1과 url2를 매칭한 뒤, url2로 접속된다. 

 


 

지금은 적용이 해제 되었음