问题
I have subdomain on the site to host CDN images. Lets call it cdn.mysite.com.
Now all the pages on my site are also accessible in this fashion:
www.mysite.com/examplepage.html
can also be accessed at
cdn.mysite.com/examplepage.html
This is causing duplicate URLs in Google..
I am using Cloudflare with Edgecast CDN
回答1:
When you set up your subdomain, did you assign it a document root?
For example:
I set up the subdomain cohen.digitaldemo.net, whose document root is digitaldemo.net/cohen/
Anything OUTSIDE the /cohen folder on my site is inaccessible via cohen.digitaldemo.net.
Best,
Cynthia
来源:https://stackoverflow.com/questions/11857924/subdomains-resolving-to-main-site-urls