AI助手支持GPT4.0
This plugin was developed to allow canonical tags as response headers to be created via htaccess for attachment files such as pdfs and docs.
开发此插件是为了允许通过htaccess为附件(例如pdf和docs)创建规范标签作为响应标头。 p>
The plugin:
插件: p>
ul>
The challenge: Analytics software such as Google Analytics, cannot track a user that enters a website via a pdf file in Google search results.
挑战 strong>:诸如Google Analytics(分析)之类的Analytics软件无法跟踪在Google搜索结果中通过pdf文件进入网站的用户。Files cannot have a standard canonical tag added in the and instead the canonical tag has to be added via an http header when the file is requested from the server.文件不能在中添加标准规范标签,而当从服务器请求文件时,必须通过http标头添加规范标签。In order to accomplish this, we need to have an htaccess file listening for a request to that file, and then sending the header.为此,我们需要一个htaccess文件来监听对该文件的请求,然后发送标头。 p>Expected outcome: PDF files and other attachments will be replaced in search results with the post or page counterparts, and we will be able to measure the traffic to those pages and provide calls to action for downloading 预期结果: strong>:搜索结果中的PDF文件和其他附件将替换为帖子或页面的对应内容,我们将能够衡量这些页面的访问量并提供号召性用语进行下载the file, submitting contact forms, etc. Note: Canonical tags do not force a search engine to index one url vs. another, but act as a guidelineequest to the search engine.文件,提交联系表格等。注意:规范标签不会强制搜索引擎索引一个url与另一个URL的索引,而是充当对搜索引擎的指南/请求。As long as the attachment content is similar to the canonical URL, you should have no problem encouraging the search engines to choose the correct version.只要附件内容与规范URL相似,就可以鼓励搜索引擎选择正确的版本。 p>Future Features and Development未来的功能和发展 h3>Based on the feedback, we hope to continue developing additional features to support user requests.根据反馈,我们希望继续开发其他功能来支持用户请求。Current future feature ideas include:当前未来的功能构想包括: p>Automatic canonicalization of non-image files to attached post将非图像文件自动规范化为附加帖子 li>Integration with non-apache servers与非Apache服务器集成 li>Canonical builder for non-wordpress media files非wordpress媒体文件的规范生成器 li>Option to bulk delete canonical associations and delete htaccess on uninstall用于批量删除规范关联并在卸载时删除htaccess的选项 li> ul>
Files cannot have a standard canonical tag added in the
文件不能在
In order to accomplish this, we need to have an htaccess file listening for a request to that file, and then sending the header.
为此,我们需要一个htaccess文件来监听对该文件的请求,然后发送标头。 p>
Expected outcome: PDF files and other attachments will be replaced in search results with the post or page counterparts, and we will be able to measure the traffic to those pages and provide calls to action for downloading
预期结果: strong>:搜索结果中的PDF文件和其他附件将替换为帖子或页面的对应内容,我们将能够衡量这些页面的访问量并提供号召性用语进行下载the file, submitting contact forms, etc. Note: Canonical tags do not force a search engine to index one url vs. another, but act as a guidelineequest to the search engine.文件,提交联系表格等。注意:规范标签不会强制搜索引擎索引一个url与另一个URL的索引,而是充当对搜索引擎的指南/请求。As long as the attachment content is similar to the canonical URL, you should have no problem encouraging the search engines to choose the correct version.只要附件内容与规范URL相似,就可以鼓励搜索引擎选择正确的版本。 p>Future Features and Development未来的功能和发展 h3>Based on the feedback, we hope to continue developing additional features to support user requests.根据反馈,我们希望继续开发其他功能来支持用户请求。Current future feature ideas include:当前未来的功能构想包括: p>Automatic canonicalization of non-image files to attached post将非图像文件自动规范化为附加帖子 li>Integration with non-apache servers与非Apache服务器集成 li>Canonical builder for non-wordpress media files非wordpress媒体文件的规范生成器 li>Option to bulk delete canonical associations and delete htaccess on uninstall用于批量删除规范关联并在卸载时删除htaccess的选项 li> ul>
the file, submitting contact forms, etc. Note: Canonical tags do not force a search engine to index one url vs. another, but act as a guidelineequest to the search engine.
文件,提交联系表格等。注意:规范标签不会强制搜索引擎索引一个url与另一个URL的索引,而是充当对搜索引擎的指南/请求。
As long as the attachment content is similar to the canonical URL, you should have no problem encouraging the search engines to choose the correct version.
只要附件内容与规范URL相似,就可以鼓励搜索引擎选择正确的版本。 p>
Based on the feedback, we hope to continue developing additional features to support user requests.
根据反馈,我们希望继续开发其他功能来支持用户请求。
Current future feature ideas include:
当前未来的功能构想包括: p>
This section describes how to install the plugin and get it working.
本节介绍如何安装插件并使其正常工作。 p>
canonical-attachements.zip
/wp-content/plugins/
canonical-attachements.zip code>上传到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Enjoy!享受! li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Enjoy!享受! li>
ol>
原文出处:http://www.sanshu.cn/a/6266.html
群主管理都是支付大佬