I would like to create a redirect rule for my htaccess which redirects a subdomain from for example images.domainname.com to www.domainame.com
if the files which is called is anything else as an image (jpg/png/gif)
The same for a subdomain scripts (css,js)
The backgorund is that I use a cdn server with several subdomains but google start indexing my subdomains now via the cdn servers. I want to prevent google from scanning at all the subdomains since they contain only images and scripts.
thanks for your help