ΛneOK v4 blog

일상의 잡다한 생각과 내용을 글 또는 사진으로 표현하는 일상 블로그입니다.

# Side Menu
  • recentPost

  • popularPost

  • Archive

  • recentComment

Study/Etc_Studying

Failed to load resource: the server responded with a status of 404 (Not Found) 해결방법

2020. 4. 7., AneOK
728x90

티스토리 스킨 만들다가 발견한 'favicon.ico 404 error'입니다만 계속 신경이 쓰여서 인터넷 뒤져 해결된 부분입니다.

해결 방법

밑에 링크에는 설명 나와 있습니다.

링크 - Failed to load resource: the server responded with a status of 404 (Not Found)

https://okky.kr/article/423208?note=1322983

위 사이트에 가시면 해결 방법이 있습니다. 그냥 상단에 주소 부분에 아이콘이 없어서 이런 문구가 나오는 것이었습니다. 아무 아이콘을 만들어서 넣으면 됩니다.

사용법

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">

<head> 안에 넣으시면 됩니다.

모바일 대응

iOS 2.0 이상과 안드로이드 2.1 이상의 기기들에선 아래와 같이 삽입한다.

<link rel="apple-touch-icon-precomposed" href="favicon.ico">

그냥 귀차니즘으로...

사용 예
<!DOCTYPE html>
<html>
<head>	
<link rel="shortcut icon" href="#">
[…]
</head>
[…]
</html>

그냥 아이콘 만들기 귀찮아서 쓰는 것으로 지구본 같은 것이 나옵니다.


728x90