http https dupliacte内容google [英] http https dupliacte content google
问题描述
我如何克服这个问题?只有我的几个页面将使用https,网站上的大部分页面最好只用http,实际上我可以放弃,如果有必要,暂时不使用https页面。
我遇到的几个想法是:301重定向,将所有https重定向到http与.htaccess。
Robots.txt对于ssl页面,再次使用.htaccess。这里的问题是https页面已经被编入索引,我希望它们被删除。我不知道robots.txt是否足够,因为据我所知,robots.txt只会告诉机器人不要抓取该页面,但已经被索引。
还有其他建议吗?
使用规范网址。
I recently installed an SSL cert on one of my sites. I have noticed that Google has now indexed both the http and https version of each page. I haven't really noticed any problem ranking wise so far, but I am conscious that a problem may occur with duplicate content.
How can I overcome this? Only a few of my pages will be using https, most of the pages on the site will be best served with just http, in fact I could get away with not using https pages at all for the time being if necessary.
A few ideas I have come across are: 301 redirects, redirect all https to http with .htaccess.
Robots.txt for the ssl pages , again using .htaccess. The problem here is that the https pages have already been indexed and I would like them to be deindexed. I am not sure if robots.txt would be sufficient because as far as I am aware robots.txt will just tell a bot not to crawl the page, but it has already been indexed.
Is there any other suggestions?
Use canonical URLs for this.
这篇关于http https dupliacte内容google的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!