예를 들어 이전 주소가 abc.com이었고

새로 바뀐 주소가 abc.com/xe라고 할 경우에

DB에 쿼리를 아래와 같이 날려주면 된다.

update xe_documents set content=Replace(content,'기존 주소 경로', '새로 바뀐 주소 경로') ;

ex)

update xe_documents set content=Replace(content,'http://www.abc.com/files/attach/images', 'http://www.abc.com/xe/files/attach/images') ;

 

이전 주소에서는 xe 란 폴더가 없었는데, 이전한 곳에서는 xe 폴더 안에다가 xe를 넣은것이 차이점이다.

추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기
array(3) { [0]=> object(stdClass)#855 (3) { ["regdate"]=> int(0) ["unique_visitor"]=> int(3835106) ["pageview"]=> int(73015259) } [20230329]=> object(stdClass)#851 (3) { ["regdate"]=> int(20230329) ["unique_visitor"]=> int(678) ["pageview"]=> int(2397) } [20230330]=> object(stdClass)#858 (3) { ["regdate"]=> int(20230330) ["unique_visitor"]=> int(207) ["pageview"]=> int(1569) } }