๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์„ ํ˜ธํ•˜๋Š”๊ฐœ๋ฐœ

ํฌ์›Œ๋”ฉ์œผ๋กœ ์šด์˜ํ•˜๋Š” ์‚ฌ์ดํŠธ๋„ ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ ๊ฐ€๋Šฅ

ํ•œ๊ธ€๋„๋ฉ”์ธ ๋ฐ WWW ๋„๋ฉ”์ธ๋“ค์— ๋Œ€ํ•œ ์ถ”๊ฐ€์ ์œผ๋กœ ์ฒ˜๋ฆฌํ•œ ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค.

<!--s ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ ๋ฐ ํฌ์›Œ๋”ฉ๋˜๋„๋ก ์ ์šฉ -->

<meta name="naver-site-verification" content="๋ณธ์ธ์˜ ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆํ‚ค๊ฐ’์„ ์ž…๋ ฅ" />

<script type="text/javascript">

var windowHref = window.location.href;

var redirectDomain = "http://0dnjs.com"; //ํ˜ธ์ŠคํŒ…์œผ๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ //์ตœ์ข…์ ์œผ๋กœ ๋ณด์—ฌ์ง€๋Š” ๋„๋ฉ”์ธ

var myDomains = [];

myDomains[0] = "HTTP://XN--0-C56F.COM"; //ํฌ์›Œ๋”ฉ ์šฉ๋„๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ 1

myDomains[1] = "HTTP://WWW.XN--0-C56F.COM"; //๋„๋ฉ”์ธ 2

myDomains[2] = "HTTP://0์›.COM"; //๋„๋ฉ”์ธ 3 //IE์—์„œ ๋„๋ฉ”์ธ์ด ํ•œ๊ธ€๋กœ ์ฒดํฌ๋จ

myDomains[3] = "HTTP://WWW.0์›.COM"; //๋„๋ฉ”์ธ 4

windowHref = windowHref.toUpperCase();

for (var i = 0; i < myDomains.length; i++) { 

windowHref = windowHref.replace(myDomains[i],"");

}

windowHref = windowHref.replace("/","");

if(windowHref == ""){

location.href = redirectDomain; //๋ฃจํŠธ๋กœ ๋“ค์–ด์˜ค๋Š” ๊ฒฝ์šฐ์—๋Š” 0dnjs.com ์œผ๋กœ ํฌ์›Œ๋”ฉ

}

</script>

<!--e ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ ๋ฐ ํฌ์›Œ๋”ฉ๋˜๋„๋ก ์ ์šฉ -->


์•„๋ž˜์˜ ์›๋ฌธ ๊ธ€์„ ์ฝ๊ณ  ๋„๋ฉ”์ธ์„ ์ถ”๊ฐ€์ ์œผ๋กœ ๋„ฃ์œผ์…”์•ผํ•˜๋Š” ๊ฒฝ์šฐ์—๋Š” ์œ„์˜ ์ฝ”๋“œ๋ฅผ ์ด์šฉํ•ด ๋ณด์„ธ์š”.


ํ˜ธ์ŠคํŒ…์œผ๋กœ ์šด์˜์ค‘์ธ 0dnjs.com ์— ํ•œ๊ธ€ ๋„๋ฉ”์ธ 0์›.com ์„ ํฌ์›Œ๋”ฉ์„ ํ•˜์˜€๋”๋‹ˆ, 

์ผ๋ฐ˜์ ์ธ ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ํ•œ๊ธ€ ๋„๋ฉ”์ธ 0์›.com ์„ ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์—†์—ˆ์–ด์š”.


ํ˜ธ์ŠคํŒ…์„ ์ถ”๊ฐ€๋กœ ํ•˜๊ธฐ์—๋Š” ์ถ”๊ฐ€์ ์ธ ๋น„์šฉ์ด ๋“ค๊ณ ....

๊ทธ๋ž˜์„œ ์ƒ๊ฐํ•ด๋ณธ๊ฒŒ, ํ‹ฐ์Šคํ† ๋ฆฌ์˜ ๊ฐœ์ธ ๋„๋ฉ”์ธ ๊ธฐ๋Šฅ์„ ์ด์šฉํ•˜์—ฌ ๋“ฑ๋ก ํ•˜๋ฉด ๋ ๊ฒƒ ๊ฐ™์•„์„œ, ์‹œ๋„ํ•ด๋ดค๋”๋‹ˆ ์„ฑ๊ณต!!


์•„๋ž˜ STEP1~4 ๊นŒ์ง€ ์™„๋ฃŒ ํ•˜์‹œ๋ฉด, ํฌ์›Œ๋”ฉ ์šฉ๋„๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ์œผ๋กœ ๋ธ”๋กœ๊ทธ์—๋„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ณ , ํฌ์›Œ๋”ฉ ์šฉ๋„๋กœ๋„ ์‚ฌ์šฉํ• ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณ  ์ œ์ผ ์ค‘์š”ํ•œ ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ๋„ ํ•ด๊ฒฐ๋˜์–ด ์†Œ์œ ๊ถŒ๋„ ํ™•์ธ๋˜๊ณ , ์›น ํŽ˜์ด์ง€ ์ˆ˜์ง‘๋„ ๋ฉ๋‹ˆ๋‹ค.



์„ค์ •ํ•˜์…”์„œ ์ข‹์€ ๊ฒฐ๊ณผ ์žˆ์œผ์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.


http://0์›.com  -> 0dnjs.com ์œผ๋กœ ์ด๋™๋จ

http://0์›.com/1 -> ํ•ด๋‹น ํฌ์ŠคํŒ…์œผ๋กœ ์ด๋™๋จ



STEP1. ์Šคํ‚จํŽธ์ง‘ -> html ํŽธ์ง‘ ํด๋ฆญ



STEP2. HTML <head> ๊ตฌ๋ฌธ์•ˆ์— ๋ณธ์ธ์˜ ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ ํ‚ค ๊ฐ’๊ณผ ํฌ์›Œ๋”ฉ์œผ๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋ณธ์ธ ์‚ฌ์ดํŠธ ์ฃผ์†Œ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  ์ €์žฅ



์Šคํ‚จํŽธ์ง‘์— ๋„ฃ์„ ์†Œ์Šค ์ฝ”๋“œ ์˜ˆ์‹œ


<!--s ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ ๋ฐ ํฌ์›Œ๋”ฉ๋˜๋„๋ก ์ ์šฉ -->

<meta name="naver-site-verification" content="๋ณธ์ธ์˜ ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆํ‚ค๊ฐ’์„ ์ž…๋ ฅ" />

<script type="text/javascript">

var myDomain = "๋ณธ์ธ์˜ ํฌ์›Œ๋”ฉ ์šฉ๋„๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ ์ž…๋ ฅ"; //ํฌ์›Œ๋”ฉ ์šฉ๋„๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ

var redirectDomain = "๋ณธ์ธ์˜ ํ˜ธ์ŠคํŒ…์œผ๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ"; //ํ˜ธ์ŠคํŒ…์œผ๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋„๋ฉ”์ธ //์ตœ์ข…์ ์œผ๋กœ ๋ณด์—ฌ์ง€๋Š” ๋„๋ฉ”์ธ

var windowHref = window.location.href;

myDomain = myDomain.toUpperCase();

windowHref = windowHref.toUpperCase();

windowHref = windowHref.replace(myDomain,"");

windowHref = windowHref.replace("/","");

if(windowHref == ""){

location.href = redirectDomain; //๋ฃจํŠธ๋กœ ๋“ค์–ด์˜ค๋Š” ๊ฒฝ์šฐ์—๋Š” 0dnjs.com ์œผ๋กœ ํฌ์›Œ๋”ฉ

}

</script>

<!--e ๋„ค์ด๋ฒ„ ์›น๋งˆ์Šคํ„ฐ ์ธ์ฆ ๋ฐ ํฌ์›Œ๋”ฉ๋˜๋„๋ก ์ ์šฉ -->



Step3. ๊ด€๋ฆฌ -> ๋ธ”๋กœ๊ทธ ๊ฐœ์ธ๋„๋ฉ”์ธ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค ์ƒํƒœ๋กœ ๋ฐ”๊พธ๊ณ , ํฌ์›Œ๋”ฉ ์šฉ๋„๋กœ ์‚ฌ์šฉ์ค‘์ธ ๋ณธ์ธ ๋„๋ฉ”์ธ ์ฃผ์†Œ๋ฅผ ์ž…๋ ฅ





Step4. ๋„๋ฉ”์ธ์„ ๊ตฌ์ž…ํ•œ ์‚ฌ์ดํŠธ๋กœ ์ด๋™ํ•˜์—ฌ, ๋„ค์ž„์„œ๋ฒ„(์„œ๋ธŒ๋„๋ฉ”์ธ)์„ค์ • ๊ด€๋ฆฌ์— ํ‹ฐ์Šคํ† ๋ฆฌ์˜ A๋ ˆ์ฝ”๋“œ์ž…๋ ฅ 27.0.236.139

ํ‹ฐ์Šคํ† ๋ฆฌ 2์ฐจ ๋ธ”๋กœ๊ทธ ์ฃผ์†Œ ๊ฐ€์ด๋“œ : http://notice.tistory.com/1784




hosting.kr ๋“ฑ๋ก ์˜ˆ์‹œ


์ถ”๊ฐ€์ ์œผ๋กœ ๋ชจ๋ฐ”์ผ์—์„œ ์ž๋™์—ฐ๊ฒฐ๋˜์ง€ ์•Š๋„๋ก ์„ค์ •ํ•ด์ฃผ์‹œ๋ฉด ๋ชจ๋“  ์„ค์ • ์™„๋ฃŒ!