Solve the problem that favicon. ICO cannot be displayed on the home page.

Source: Internet
Author: User

Recently I tried to add A favicon. ICO icon to my website. Under normal circumstances, you can use the favicon-manager plug-in for implementation. For specific methods, I refer to the solution provided by Zeus. You can also download the plug-in here. After this plug-in is enabled, set the absolute path of favicon. ICO in the background, and then OK. However, if you have a jump page on the home page like me, you will not be able to see this icon on the home page, even if I put the favicon. ICO is lost in the root directory. You can add a segment between CodeIn this way. To sum up, there are three types of code:

<LINK rel = "shortcut icon" href = "ICO address"> <LINK rel = "shortcut" href = "/favicon. ICO "/> <link href =" ICO address "rel =" shortcut icon ">
I used the first code. Here, the "ICO address" should be the absolute path where favicon. ICO is stored. For example, if my storage address is the root directory of the space, write it here as dogorgod.com/favicon.ico. here, we want to upload images,

If you write the address as a response. Remove WWW and use the top-level domain name write path to display this icon at both www.xxx.com and xxx.com. The specific cause is unclear. I tried n times to find this problem.

If all settings are correct and favicon. ICO cannot be displayed, try removing www.

From: http://www.dogorgod.com/blog/favicon-ico-wrong-342.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.