[php] 도메인주소 www > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[php] 도메인주소 www

페이지 정보

profile_image
작성자 제로
댓글 2건 조회 99,970회 작성일 08-12-13 04:52

본문

www붙이기

<script  language="JavaScript" type="text/javascript">
 var host = location.host.toLowerCase();
 var currentAddress = location.href;
 if (host.indexOf("www") == -1)
 {
  currentAddress = currentAddress.replace("//","//www.");
  location.href = currentAddress;
 }
</script>


www없애기

<script language="javascript">
 var strHostname="";
 strHostname = document.location.hostname;
 strHostname = strHostname.toLowerCase();

 if (strHostname == "www.zeronara.net"){
  location.href = "http://zeronara.net/";
 }

</script>

댓글목록

profile_image

ChanbiZ님의 댓글

ChanbiZ 작성일

별 거 아닌거 같아요 꽤 필요할 때가 있기 마련이죠..
특히 모모모 계정 등에선.. 무조건 써야함.. 안그러면 피봄.. ㅎㅎ
^_^

profile_image

곰순이푸님의 댓글

곰순이푸 작성일

모모모 계정이 머에용?

Total 829건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
829 제로 274 06-18
828 제로 3013 03-21
827 제로 3427 02-23
826 제로 29997 11-02
825 제로 33255 07-10
824 제로 42518 04-06
823 제로 30986 02-21
822 제로 35837 12-31
821 제로 30096 12-24
820 제로 29945 12-04
819 제로 32538 10-17
818 제로 31413 10-02
817 제로 54840 08-04
816 제로 29861 08-04
815 제로 40205 08-03
814 제로 40533 07-08
813 제로 68977 07-08
812 제로 83056 07-06
811 제로 31221 06-09
810 제로 36692 06-03
809 제로 35073 04-16
808 제로 35646 03-29
807 제로 30153 03-26
806 제로 37275 03-12
805 제로 32228 03-10

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5470-4714
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
10,438
어제
25,212
최대
431,155
전체
6,735,690
Copyright (c) 株式会社YHPLUS. All rights reserved.