문제

On my site, all worked fine with the favicon. Since i switched to https (using DNAT Rules on Astaro Firewall) it displays the Astaro-Favicon. I dont want to change the FW's favicon and can't find any information how to solve this.

I include the icon using

<link href="/favicon.ico" type="image/x-icon" rel="icon">
<link href="/favicon.ico" type="image/x-icon" rel="shortcut icon">
도움이 되었습니까?

해결책

Instead of linking to the default location, often overwritten, a solution is to put your icon in another location and link to that location.

Note also that absolute URL (URL starting with a /) are dangerous since they stop being relevant as soon as you move your site to a subdirectory (and the user may see an different path than you, especially if you use a proxy).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top