[WordPress] 外掛分享: Canonical Attachments

首頁外掛目錄 › Canonical Attachments
WordPress 外掛 Canonical Attachments 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(2 則評價)
230 天前
最後更新
問題解決
WordPress 4.5.1+ v1.8 上架:2017-01-18

內容簡介

這個外掛是為了讓附件檔案(例如pdf和文檔)能夠通過htaccess創建canoncial標籤作為回應標頭而開發的。

這個外掛:

生成一個htaccess文件來管理這些檔案所上傳的wp-content/uploads目錄
更新htaccess文件,通過標籤在附件被呼叫時傳遞內容
創建一個資訊面板,讓您可以輕鬆篩選並查找沒有標籤或沒有附加到文章的附件。
創建一個資訊面板,讓您可以輕鬆將檔案附加到其父文章(一次一個或批量)或手動添加/刪除檔案的標籤。
允許您從媒體庫中的媒體檔案或上傳時添加canoncial網址
創建一個資訊面板,允許您直接編輯uploads目錄的.htaccess文件,以防網站遷移期間上傳的其他檔案在目錄中

挑戰:分析軟件(例如Google Analytics)無法跟踪透過Google搜尋結果進入網站的使用者。檔案無法在<head>標籤中添加標準的canoncial標籤,而是必須在從伺服器請求該檔案時通過http標頭添加標籤。為了實現這一點,我們需要有一個htaccess文件來聽取對該檔案的請求,然後發送標頭。

預期結果:PDF檔案和其他附件將在搜尋結果中被帖子或頁面替換,我們將能夠測量到那些頁面的流量,並提供下載檔案、提交聯繫表等誘因。注意:標籤並不強制搜索引擎索引一個URL而不是另一個,但作為一個指導/請求搜索引擎。只要附件的內容與canoncial URL相似,您應該可以鼓勵搜索引擎選擇正確的版本而沒有問題。

未來功能和開發

根據反饋,我們希望繼續開發支持用戶請求的其他功能。當前未來特性的想法包括:

自動附加非圖像檔案到已附加的文章上
與非apache伺服器的集成
非WordPress媒體檔案的標籤生成器
選項可以批量刪除標籤關聯並在卸載時刪除htaccess

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Canonical Attachments」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin was developed to allow canonical tags as response headers to be created via htaccess for attachment files such as pdfs and docs.
The plugin:

Generates an htaccess file to manage the wp-content/uploads directory where these files are being uploaded
Updates the htaccess file with canonical tags which are delivered via a header when the attachment is called
Creates a dashboard where you can easily filter and find attachments without canonicals or that are not attached to a post.
Creates a dashboard where you can easily attach a file to its parent post (one at a time or in bulk) or manually add/remove a canonical tag for a file
Allows you to add a canonical url from the media file in the library or when you upload
Creates a dashboard to edit the .htacess file directly for the uploads directory in case there are additional files in the directory that were uploaded outside of wordpress (e.g. during a site migration)

The challenge: Analytics software such as Google Analytics, cannot track a user that enters a website via a pdf file in Google search results. 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. In order to accomplish this, we need to have an htaccess file listening for a request to that file, and then sending the header.
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 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 guideline/request to the search engine. 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.
Future Features and Development
Based on the feedback, we hope to continue developing additional features to support user requests. Current future feature ideas include:

Automatic canonicalization of non-image files to attached post
Integration with non-apache servers
Canonical builder for non-wordpress media files
Option to bulk delete canonical associations and delete htaccess on uninstall

延伸相關外掛

文章
Filter
Apply Filters
Mastodon