Subdomains resolving to main site URLs

ぐ巨炮叔叔 提交于 2019-12-11 14:22:24

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!