I run a server with the URL pattern http://*.self/
. Based on the client's User Agent string i need to return the same content whatever their path may be. In example:
Will return this exact same content by /path/to/search-bot/index.php
:
<body>
<h1>Thou sahll not!</h1>
</body>
Here is my apache VirtualHost:
<VirtualHost *:80>
ServerName self
ServerAlias *.self
VirtualDocumentRoot /some/path
</VitualHost>
The following...
BrowserMatch "(?i:Googlebot)" no_bot=1 #google
<If "reqenv('no_bot') == 1">
AliasMatch .* /path/to/search-bot/index.php
</If>
...gives me this error after running service apache2 restart
:
AliasMatch not allowed here
EDIT
For the issue about Clocking for Google, yes, i understand, but i DO intend to get penalized by Google. I have special reason to.