#author("2022-03-31T15:54:46+09:00","","")
* Only variables should be passed by reference in lib/convert_html.php が発生 [#sd21e267]
#author("2022-05-01T17:35:44+09:00","","")
* listプラグインは「X-Robots-Tag: nofollow,noindex」にしない [#ueb4e0e1]

- ページ: [[BugTrack]]
- 投稿者: [[pontam]]
- 優先順位: 普通
- 投稿者: [[m0370]]
- 優先順位: 低
- 状態: 提案
- カテゴリー: 本体バグ
- 投稿日: 2022-03-31 (木) 15:54:46
- カテゴリー: その他
- 投稿日: 2022-05-01 (日) 17:31:50
- バージョン: 1.5.4

** メッセージ [#e2beeeff]
PHP Notice ですが,
337・965・982・1017行目で発生していると言われてしまいます。
** メッセージ [#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



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 8.2.12. HTML convert time: 0.346 sec.

SourceForge