简体   繁体   English

如何从apache日志中删除apple-touch-icon-precomposed.png错误并保留iOS图标效果

[英]How to remove apple-touch-icon-precomposed.png errors from apache log and keep iOS icon effects

The title about sums it up. 关于总结的标题。

I want to get rid of all those 404 errors in the log for apple-touch-icon-precomposed.png without having to add such an image, thus losing the iOS icon effects. 我想摆脱apple-touch-icon-precomposed.png日志中的所有404错误,而不必添加这样的图像,从而丢失iOS图标效果。

Two ideas come to mind: 想到两个想法:

  • Use mod_rewrite to force an error, using the flags [F] (403 forbidden), [G] (410 gone), or [R=404,L] (a "redirect" to a 404). 使用mod_rewrite强制错误,使用标志[F] (403禁止), [G] (410消失)或[R=404,L] (“重定向”到404)。 I think these skip the error log. 我认为这些跳过了错误日志。
  • Use a zero-length file (if the device supports this). 使用零长度文件(如果设备支持此项)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM