子域名解析为主要的网站的网址 [英] Subdomains resolving to main site URLs
问题描述
我的子域名上的站点托管CDN图像。让我们把它叫做cdn.mysite.com。
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
也可以在
cdn.mysite.com/examplepage.html
这是造成重复的URL在谷歌..
This is causing duplicate URLs in Google..
我使用的CloudFlare与Edgecast CDN
I am using Cloudflare with Edgecast CDN
推荐答案
当您设置的子域,你有没有给它指定一个文档根目录?
When you set up your subdomain, did you assign it a document root?
例如:
我设置的子域cohen.digitaldemo.net,其文档根目录digitaldemo.net/cohen~~V /
I set up the subdomain cohen.digitaldemo.net, whose document root is digitaldemo.net/cohen/
外任何在我的网站上/科恩文件夹是通过cohen.digitaldemo.net无法访问。
Anything OUTSIDE the /cohen folder on my site is inaccessible via cohen.digitaldemo.net.
最好的,
辛西娅
这篇关于子域名解析为主要的网站的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!