內容簡介
Smart Attachment Page Remove 外掛可以讓你自動刪除 WordPress 所生成的附件頁面。
使用方法
WordPress 會為您上傳到多媒體庫的每個檔案產生一個頁面。即使您不想使用這些頁面,也從未將媒體檔案鏈接至其附件頁面,但這些頁面仍然存在且可以由其自動生成的 URL 存取。Smart Attachment Page Remove 插件會阻止附件頁面的訪問並導致 404 錯誤(“頁面未找到”)。
這確保附件頁面不會出現在搜尋引擎結果中。
此外,此插件防止透過這些附件頁面發送廣告評論垃圾郵件,因為這些頁面不再可訪問。
設定
可以選擇性地發送狀態碼 410 而非狀態碼 404。
HTTP 狀態碼 404 表示找不到請求的 URL。當 WordPress 找不到 URL 時,始終發送此預設程式碼。HTTP 狀態 404 不提供任何進一步的信息,說明為什麼找不到 URL。
另一方面,HTTP 狀態碼 410 表示請求的 URL 不再可用並且不會再可用。如果您的附件頁面已經被搜尋引擎索引,HTTP 狀態 410 會通知它們立即從索引中刪除這些頁面。這應加快刪除速度。
無論如何,在附件頁面的情況下,使用 HTTP 狀態 410 更有意義,強烈建議始終啟用此選項。
此選項不會默認啟用,因為這不是 WordPress 的通常行為。使用 HTTP 410 沒有負面影響。
支援
支援論壇
您喜歡這個外掛嗎?
我花費很多寶貴的空餘時間開發和維護免費的 WordPress 外掛。 您不需要捐贈。 沒有錢,沒有啤酒,也沒有咖啡。 如果您喜歡這個外掛,請幫我一個忙并給它好評。 謝謝。
外掛隱私信息
此插件不設置 cookies
此插件不收集或存儲任何數據
此插件不向外部服務器發送任何數據
Peters’ Plugins 隱私信息頁面
ClassicPress
此外掛與ClassicPress兼容。
Peter 的其他外掛
smart Archive Page Remove - 徹底刪除博客中不需要的存檔頁面
404page - 將您的任何 WordPress 頁面定義為 404 錯誤頁面
hashtagger - 使用 #hashtags 標記您的文章
查看全部
外掛標籤
開發者團隊
② 後台搜尋「Smart Attachment Page Remove」→ 直接安裝(推薦)
原文外掛簡介
The Smart Attachment Page Remove Plugin allows you to remove Attachment Pages automatically generated by WordPress
Retired Plugin
Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.
There will be no more updates and I won’t answer any support questions. Thanks for your understanding.
Feel free to fork this plugin.
Usage
WordPress automatically generates a page for every file you upload to your Media Library. Even if you do not want to use these Pages and never link media files to their Attachment Page these pages exist and can be accessed by their automated generated URL. The Smart Attachment Page Remove Plugin blocks access to Attachment Pages and causes an 404 error (“page not found”).
This ensures that Attachment Pages do not appear in the results of Search Engines unwanted.
Additionally this plugin prevents from comment spam sent via this Attachment Pages because they are no longer accessible.
Settings
Optionally, a status code 410 can be sent instead of status code 404.
HTTP status code 404 indicates that the requested URL could not be found. This is the default code always sent by WordPress when a URL can not be found. HTTP status 404 does not provide any further information why a URL was not found.
HTTP status code 410 on the other hand indicates that the requested URL is no longer available and will not be available again. If your Attachment Pages already have been indexed by search engines, HTTP status 410 informs them to immediately delete those pages from their index. This should speed up removal.
Regardless, in case of Attachment Pages it makes more sense to use HTTP status 410 anyway and it is recommendet to activate this option in any case.
This option is not activated by default only because it is not the usual behavior of WordPress. There are no negative effects in using HTTP 410.
Plugin Privacy Information
This plugin does not set cookies
This plugin does not collect or store any data
This plugin does not send any data to external servers
