【发布时间】:2021-08-23 07:35:30
【问题描述】:
我有几个 HTML 页面在 <head> 中使用以下标签。为了减小文件大小,我想使用.htaccess 添加标签:
<link type='image/x-icon' rel='shortcut icon' href='images/favicon.ico' />
<link rel='apple-touch-icon' sizes='180x180' href='apple-touch-icon.png'>
<link rel='icon' type='image/png' sizes='32x32' href='favicon-32x32.png'>
<link rel='icon' type='image/png' sizes='16x16' href='favicon-16x16.png'>
<link rel='manifest' href='site.webmanifest'>
<link rel='mask-icon' href='safari-pinned-tab.svg' color='#000'>
<meta name='msapplication-tilecolor' content='#000' />
<meta name='theme-color' content='#ffffff' />
<link rel='stylesheet' href='css/styles.css' />
我尝试在线搜索,但没有找到任何可能的信息。如何使用.htaccess在每个页面的<head>中插入上面的标签?
【问题讨论】: