I use a cookieless sub domain
static.example.com to serve all images, js, and css files. This static sub domain has as its root directory the same directory as the parent
static.example.com/index.php will result in calling the same file as
Google has taken up indexing
static.example.com and I need to stop this.
I can't modify robots.txt since it would apply to both domains. Webmaster tools allows "temporary" removal of a link, but this needs to be permanent.
I registered this static domain through google as a separate site from
example.com, but this doesn't seem to buy me anything since I can't see a way to block crawling without using robots.txt - which would block it from the parent domain.
Any other ideas?
Found this conversation on Webmaster Help Forum
I am looking into whether it's possible to insert a META tag dynamically into the header of every page called on the static domain using php
I am not putting any content on static.domain.com. There are NO webpages on it that are called - it only serves images. I have it redirecting to the same root directory as the main site for ease of coding image links (not every image is fed from the same image path).
Google got a hold of the static web root address - probably because .htaccess redirects to index.php if a file is missing and then crawled it. Now Google is showing the static version of the same pages with search results.