Please help me stop google indexing https pages on my wordpress site
-
I added SSL to my wordpress blog because that was the only way to get a dedicated IP address for my site at my host. Now I am noticing Google has started indexing posts both as http and https. Can some one please help how to force google not to index https as I am sure its like having duplicate content. All help is appreciated. So far I have added this to top of htaccess file: RewriteEngine on
Options +FollowSymlinks
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots.txt$ robots_ssl.txt And added robots_ssl.txt with following: User-agent: Googlebot Disallow: / User-agent: * Disallow: /
But https pages are still being indexed. Please help.
-
Hi Rookie123
Having unique IP's may be of use from an SEO perspective if you have multiple sites that you are interlinking with the hope of boosting SEO. However there is no guarantee that Google will not be able to work out that the sites are still in fact related.
If this is a single stand alone site then I would not worry about having a unique IP as I am not aware of any tangible benefit and would be more focused on resolving the duplicate content issue.
Hope this helps.
-
Hehe. Some one on DP suggested that.
So are you saying just add this to htaccess
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://www.sitename.com/$1 [R=301,L]
I am just trying to understand what it actually do? Also I am guessing i will have to deindex already indexed https pages from webmaster tools.
-
Did you just copy code from Digital Point or have SEOmoz started putting ads in?
The nofollow should in theory stop bots wandering around the https version once they're on there, so can't hurt.
I think you're best redirecting the https version though if you don't need it at all.
-
Barry,
I will try that also. Also wanted to ask you what you think about adding following to the template.
if ($_SERVER['HTTPS'] = "on") { echo 'content="noindex, nofollow">'; }
-
Can you just redirect the https to the http version?
Options +FollowSymlinks
RewriteEngine on
RewriteBase /RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] -
Its a wordpress site and actually I do not even have a single page that needs https.
I am also thinking of just getting rid of ssl from my site. I added it to have a unique IP for my site cause I had heard it helps with SEO but I think the issues outweigh the benefits.
What do u think is better, do these code changes or just get rid of SSL? -
The problem here is you've not told the robots to noindex the https version, you've simply said they're not allowed to crawl it, but if they see a link go to there they know it exists in some capacity. What you need is the robots noindex tag on all these pages.
If you have some way of differentiating the https pages in your template then you just need to add
to the header.
If you can't then you can try to do it by putting this bit of php in your header
if ($_server['https] == "on") {
echo ";
}?>
I would guess there's some dangers in that doing bad stuff to your site, so make sure and test it. If it appears on all your pages take it off immediately!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Blogging , do I create a huge blog which links to all my sites
Blogging , do I create a huge blog which links to all my sites or do i create a blog on each site, or do i guest blog to each site from other peoples blogs 😞 which is best ?
Content Development | | SocialAssist1 -
Copying & Pasting the Moz Glossary onto my site.. is this white hat or black hat?
Hi, I run a small business writing optimised content for small businesses in Melbourne. I want to add a Glossary page to my website that lists all of the different words associated with website marketing and SEO. I found the Moz glossary and I am wondering if it would be a bad idea to copy and paste the list straight into a page on my site. I'd prefer to not have to reword all of the descriptions as it will take me ages and I don't want to compromise the information in the descriptions. Here is a link to the Glossary: http://moz.com/blog/smwc-and-other-essential-seo-jargon Obviously I don't want to do the wrong thing ethically or from Google's perspective. Any advice would be great.
Content Development | | StoryScout0 -
Will a comment section on my site help with seo
I have never been a fan of comment pages such as the sun http://www.thesun.co.uk/sol/homepage/showbiz/tv/4783642/bruce-willis-appears-on-the-one-show-in-awkward-interview.html but i was told the other day that not only is it good for the reader but it is also good for seo and increase the number of times that google would visit the page and i would like to know if that is true. if you have added a comment section to your articles i would like to know if you have noticed any change.
Content Development | | ClaireH-1848860 -
I started a Wordpress blog, google indexed it...
How long before I can see those links show up in SEO Moz for my website? What elements is SEO Moz looking for before they add the wordpress site to my linking domains report? Regards, Jeff
Content Development | | biggieshaws0 -
Suggestion for E commerce Site
Hi ! We own a E-commerce Store. we have forum and blog & video too. like:- blog.store.com forum.store.com Store.com/videos Now to make it more content rich planning for Q & A on it. Do you think building one more sub-domain (answers.store.com ) is good or Folder (store.com/answers) or should use forum for this. Actually we are selling cosmetics and on chat people asking us many questions. we want to use those question as content. I'm not sure how we should manage it. Thanks
Content Development | | vinku0 -
Duplicate Page Content & Rel-Canonicals
The SEO Moz duplicate page content tool lists the following URL's as having duplicate content: http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx?sort=PriceAsc&pi=2 The second URL is the price sorter/second page of the category and contains the following rel-canonical: | http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx"> Are we using the rel-canonical correctly in this case? If so, why does it continue to show up as duplicate content in our SEO Moz report? There are over 1,000 URLS listed in the report with the exact same issue. |
Content Development | | ironpac0 -
If we use content copied from another site ( assuming we have not plagerized), does it hurt our Google Rankings?
We have permission from another company to copy their content and use it on our site. This happens when we are describing a manufacturer's product and we copy pages from their site and add these pages to our site in order to describe the product we are selling. Is this considered duplicate content? Can this practice hurt us?
Content Development | | huskers0 -
I have a page where you can download a PDF of the material - should I exclude the PDF from the search engines?
In my niche, there is a controversial research article that is very popular. I am writing a rebuttal to this article and giving another point of view. My article has the potential to be really good link bait for my site. The original article is often printed out to be shown to professionals in my niche. My hope is that people will do the same with mine. So, I plan to have a PDF version of my article available on my page. The article that is visible on my site (i.e. non PDF) will be a graphic rich article that is easy for the reader to go through. I plan to have the PDF have all of the same text, but it won't have as many graphics - it will look more like a scientific research article. So, should I exclude the pdf from search engines so that it isn't duplicate content? Or does that even matter seeing as it is a duplicate of my own content? I want people to link to the main article, not the pdf. Any tips would be greatly appreciated!
Content Development | | MarieHaynes1