URLパターンでサーバーを実行していますhttp://*.self/
。クライアントのユーザー エージェント文字列に基づいて、パスが何であれ、同じコンテンツを返す必要があります。例:
によって、これとまったく同じコンテンツが返され/path/to/search-bot/index.php
ます:
<body>
<h1>Thou sahll not!</h1>
</body>
これが私のApache VirtualHostです:
<VirtualHost *:80>
ServerName self
ServerAlias *.self
VirtualDocumentRoot /some/path
</VitualHost>
以下...
BrowserMatch "(?i:Googlebot)" no_bot=1 #google
<If "reqenv('no_bot') == 1">
AliasMatch .* /path/to/search-bot/index.php
</If>
...実行後にこのエラーが表示されますservice apache2 restart
:
AliasMatch not allowed here
編集
Clocking for Googleに関する問題については、はい、理解していますが、Google からペナルティを受けるつもりです。私には特別な理由があります。