#author("2022-05-01T17:31:50+09:00","","") #author("2022-05-01T17:35:44+09:00","","") * listプラグインは「X-Robots-Tag: nofollow,noindex」にしない [#ueb4e0e1] - ページ: [[BugTrack]] - 投稿者: [[umorigu]] - 投稿者: [[m0370]] - 優先順位: 低 - 状態: 提案 - カテゴリー: その他 - 投稿日: 2022-05-01 (日) 17:31:50 - バージョン: 1.5.4 ** メッセージ [#r4782256] [[BugTrack/2366]] デフォルトコンテンツのページが検索エンジンに引っかからないようにする より、 cmd=list もX-Robots-Tagでnoindexが出力されますが、このようなURLを示すタイプのプラグインはむしろインデックスしてもらった方が良いのではないでしょうか。 -------- ([[BugTrack/2366]]より移動しました) - cmd=list もX-Robots-Tagでnoindexが出力されますが、このようなURLを示すタイプのプラグインはむしろインデックスしてもらった方が良いのではないでしょうか。 -- [[m0370]] &new{2022-04-27 (水) 08:19:07}; -- うちのPukiwikiでは下記のようにして、 cmd=list ではnoindexにならないようにしています。 -- [[m0370]] &new{2022-04-29 (金) 10:16:47}; lib/html.php // Output nofollow / noindex regardless os skin file (改造前) if (!$is_read || $nofollow) { if (!headers_sent()) { header("X-Robots-Tag: noindex,nofollow"); } } // Output nofollow / noindex regardless os skin file (改造後) if (!$is_read || $nofollow) { if (!headers_sent()) { if( !isset($vars['cmd']) || $vars['cmd'] != 'list'){ header("X-Robots-Tag: noindex,nofollow"); } } } -- たしかにlistはnoidexはずしてもいいかもしれませんね。問題はlistだけにするか他のプラグインも設定できるようにするか、ぐらいでしょうか -- [[umorigu]] &new{2022-04-29 (金) 23:13:08}; -------- #comment