I don't think lemonstand generates a robots.txt file automatically, and recently noticed that google.co.uk was indexing https: copies of various pages on my site, this obviously counts as duplicate content which is frowned upon. I didn't notice it with google.com for some reason.
Anyway, the reason is that I haven't got my secure pages running on a separate server/sub-domain.
The solution is to create a .htaccess command which tells anything using port 443 [SSL] to look at another robots.txt file.
So create robots_ssl.txt
User-agent: * Disallow: /
and add the following to your .htaccess
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots.txt$ robots_ssl.txtAleksey, is there anything that we should be specifically disallowing within a robots.txt?
This post has been edited by Jim: 07 July 2010 - 01:50 AM

Help













