duplicate-content

How to avoid duplicate content mapping urls with htaccess

最后都变了- 提交于 2019-12-11 20:00:39
问题 I'm kind of new to writing htaccess rules. I want to make the urls in my website as simple as possible. Let's say I want to "map" /home/ directory for root domain. So, http://www.domain.com would display content from /home/ directory without changing url. Moreover, I don't want users / google to access to: http://www.domain.com/home/, so, if somebody goes to that URL, I want to redirect them back to my root domain: http://www.domain.com. I'm seeing that google is indexing both directories

http https dupliacte content google

陌路散爱 提交于 2019-12-08 21:39:29
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

http https dupliacte content google

∥☆過路亽.° 提交于 2019-12-08 03:49:34
问题 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