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!
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
-
How do you rank a site in a very competitive market?
Do you focus on article submission, social media backlinks or what?
Content Development | | shauna70840 -
Lonely lonely pages
On my site I have tons of blog posts that have never been visited. (Falls on floor in tears). I of course know why. The content is mediocre in most cases and when it was average to good I didn't market it more. My question is should I go and just scrub the non visited pages or spend the time making these pages better and work on making the content above average? My competition above me do not have as many pages and their ranking is purely (I have researched this to death) from links from sites they have developed - with good authority.
Content Development | | GrangeWeb1 -
One story stands out for not getting indexed?
We have all our stories published today ( 20-Jun-2013 ) got indexed by google except this ( http://coed.com/2013/06/20/heres-a-video-of-kate-upton-topless-on-a-horse/ ). Do anyone out there have any clue about that? Thanks in advance
Content Development | | COEDMediaGroup0 -
Is this facebook a paid for page please advise
Hi i would love to have a commercial facebook page instead of my personal name, i would like to have my company name on facebook like the huffington post but not sure if you have to pay for it or not here is the huffington facebook page, can anyone let me know if this is a paid for page http://www.facebook.com/HuffPostUK
Content Development | | ClaireH-1848860 -
Page hidden in SERPs
As well as unique content, we carry press releases (contracts with PR companies) Some pages don't show up in SERPs - but sometimes a few or even hundreds of other sites do. At the end of the search, google shows this: In order to show you the most relevant results, we have omitted some entries very similar to the 109 already displayed.
Content Development | | loopyal
If you like, you can repeat the search with the omitted results included. When the search is repeated, using that link, the page often shows up in the top 10 or top 20. I believe this is a site problem, not a page problem. We are often one of the first to publish the release.0 -
Forum Site: Content Value Post Panda
I run a forum website built on Wordpress. We're about two years old. The theme of the site is a directory of attorneys, with each directory listing having its own blog account on our site. Through this platform, we receive 75-80 blog posts now every month of varying quality from our users. QUESTION: A good number of the blogs published on our site are also published on the attorney's law firm site as well (they're syndicating on our site). Will this hurt our site in light of Panda? A lot of the syndicated content is very well written and insightful. By contrast, Will non-syndicated but average to below average posts hurt our site? The authors almost always link back to their firm site. Would love some feedback on whether we should be happy about the syndicated content or whether we should potentially ban it?
Content Development | | JSOC0 -
Meta Title and Description Placement in Wordpress
I noticed in wordpress code that the <title>and <description> are not at the top of the code and rather located a ways down the code and not displayed how previous sites used to be.</p> <p>Does this still matter for SEO.</p> <p>I thought it should have been,</p> <div id="syn_row5" class="SYN_TXT"><span class="HTML_TXT"><span class="HTML_TAG"><<span class="HTML_ELM">title</span>></span><span class="HTML_TAG"></<span class="HTML_ELM">title</span>></span></span></div> <div class="SYN_ROW"> <div id="syn_row6" class="SYN_TXT"><span class="HTML_TXT"><span class="HTML_TAG"><<span class="HTML_ELM">meta</span> <span class="HTML_ATR">name</span>=<span class="HTML_VAL">"Description"</span> <span class="HTML_ATR">content</span>=<span class="HTML_VAL">""</span> /></span></span></div> <div class="SYN_TXT"><span class="HTML_TXT"><span class="HTML_TAG"> <div id="syn_row6" class="SYN_TXT"><span class="HTML_TXT"><span class="HTML_TAG"><<span class="HTML_ELM">meta</span> <span class="HTML_ATR">name</span>=<span class="HTML_VAL">"Keywords"</span> <span class="HTML_ATR">content</span>=<span class="HTML_VAL">""</span> /> (if still needed ?)</span></span></div> <div class="SYN_TXT"><span class="HTML_TXT"><span class="HTML_TAG"><span class="HTML_TXT"><span class="HTML_TAG"> </span></span></span></span></div> <div class="SYN_TXT"><span class="HTML_TXT"><span class="HTML_TAG"><span class="HTML_TXT"><span class="HTML_TAG"><span class="HTML_TXT"><span class="HTML_TAG">Is there a way to do this in Wordpress? Or does placment not matter anymore?</span></span></span></span></span></span></div> </span></span></div> </div></title>
Content Development | | hfranz0 -
What are some good tips for getting approved by Google News?
Please share your tips for improving your chances of getting approved for Google News. Thanks Mozzers!
Content Development | | SparkplugDigital0