[ERROR] favicon.ico 404 (not found) ์—๋Ÿฌ ํ•ด๊ฒฐ

Jiwonยท2024๋…„ 1์›” 29์ผ
0

๐Ÿ’ก๋ฌธ์ œ ์ƒํ™ฉ

์›น์‚ฌ์ดํŠธ ๊ฐœ๋ฐœ์„ ํ•˜๋‹ค๋ณด๋ฉด ์•„๋ž˜ ๊ทธ๋ฆผ๊ณผ ๊ฐ™์€ ์ƒํ™ฉ์„ ํ™•์ธํ–ˆ๋‹ค.

GET http://localhost:port/favicon.ico 404 (Not Found)

๊ฐœ๋ฐœํ•˜๊ณ  ์‚ฌ์šฉํ•˜๋Š”๋ฐ ๋ฌธ์ œ๋Š” ์—†์ง€๋งŒ 404 ์ฝ”๋“œ๋Š” ์ตœ๋Œ€ํ•œ ๋งˆ์ฃผ์น˜์ง€ ์•Š๋Š” ๊ฒƒ์ด ์ข‹๊ธฐ ๋•Œ๋ฌธ์— (์ด์œ ๋Š” ์ถ”๊ฐ€ ๊ณต๋ถ€ํ•ด๋ณผ ์˜ˆ์ •!) ํ•ด๊ฒฐํ•ด๋ณด๊ธฐ๋กœ ํ•œ๋‹ค!

favicon?

๋ธŒ๋ผ์šฐ์ €์˜ ํƒญ์— ์‚ฌ์ดํŠธ๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ์•„์ด์ฝ˜์„ ๋งํ•œ๋‹ค.
์•„๋ž˜ ์บก์ณ์ฒ˜๋Ÿผ ๊ธฐ๋ณธ ์•„์ด์ฝ˜์€ ์ง€๊ตฌ๋ชจ์–‘์ด๊ณ , ๋„ค์ด๋ฒ„๋„ ํšŒ์‚ฌ์˜ ๋กœ๊ณ ๊ฐ€ ๋“ค์–ด๊ฐ€ ์žˆ๋‹ค.

ํŒŒ๋น„์ฝ˜์„ ์„ค์ •ํ•  ๋•Œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ฝ”๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

<link rel="shortcut icon" href="http://www.example.com/myicon.ico"/>

๋˜๋Š”

<link rel="shortcut icon" href="/somepath/myicon.ico"/>

โœ… ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

ํŒŒ๋น„์ฝ˜ ์„ค์ •๋ฐฉ๋ฒ•์— ๋”ฐ๋ผ์„œ ํ•ด๊ฒฐํ•ด๋ณด์ž.

<link rel="shortcut icon" href="#">

์œ„์˜ ์ฝ”๋“œ๋ฅผ <head></head> ํƒœ๊ทธ ์•ˆ์— ๋„ฃ์–ด์„œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ๋‹ค.

์ถ”๊ฐ€๋กœ ์ž๋ฃŒ๋ฅผ ์ฐพ์•„๋ณด๋‹ค๋ณด๋‹ˆ ๋ช‡๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ๋” ์žˆ์—ˆ๋‹ค.

<link rel="shortcut icon" href="">
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

์ž๋ฐ” ๊ฐ™์€ ๊ฒฝ์šฐ ๋งํฌ ์†์„ฑ์— "#"๋งŒ ๋„ฃ์œผ๋ฉด ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ์ค‘๋ณต ํ˜ธ์ถœ๋˜๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๊ณ  ํ•œ๋‹ค. ๊ทธ๋ž˜์„œ <link rel="icon" href="data:;base64,iVBORw0KGgo=">์ฝ”๋“œ๋กœ ์ˆ˜์ •ํ•˜์—ฌ ๋ฌธ์ œ๋ฅผ ๋‹ค์‹œ ํ•ด๊ฒฐํ–ˆ๋‹ค.

์ฐธ๊ณ 

https://ko.wikipedia.org/wiki/%ED%8C%8C%EB%B9%84%EC%BD%98

profile
์ž‘์€ ๊ฐœ๋ฐœ ๊ธฐ๋ก

0๊ฐœ์˜ ๋Œ“๊ธ€