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
-
SEO Questions & Help
I have a woo commerce shop in the firearms industry which makes advertising even more difficult because no FB, IG, or Google campaigns. I do have other sources of advertising but I'm a complete noob when it comes to SEO and the like. I know it exists and its important and that's the extent of it. I was thinking of hiring someone on Upwork to take care of this on my website but what kinds of questions/things I should look out for to keep from getting scammed? Any tips would be appreciated
Content Development | | chrisjordan0i10 -
How to create a dynamic visual sitemap using Google sheets?
Does anyone have a solution where you can use a listing of page names with tiers in a Google spreadsheet and have it dynamically appear in a visual sitemap architecture format within in a Google document? Thanks in advance Moz community!
Content Development | | peteboyd0 -
Is it a good idea to have campanion site?
I am just thinking to start a companion site, do you think its a good idea to have this sort of site. As i believe it may be the good source to get good referral traffic from this site.
Content Development | | Mustansar0 -
One Page Website Blog Content Question
Hi guys, I'm new to the art of SEO and am learning every day from all the fantastic content here, I have a question that I can't find an answer to, hope it doesn't stump you like it has me... I have a one page website (www.neilwilliamsvoiceover.com) that I need to put more content on for SEO purposes but needs to be kept as one page. I've set-up a blog via blogger, and have that on the website but it's in iframe, which I've now discovered is ignored by search engines. So, my question is, is there a way to pull my blog feed into the website and have it recognised by search engines as content for the website? Would I use an RSS feed or feed burner or something else completely?! Thanks for your time and help in advance.
Content Development | | BamMK0 -
Anyone know of any other guest blogging sites like myblogguest?
Hi, I am a member over at myblogguest, but im wondering is this the only service online for guest blogging? Cheers
Content Development | | activitysuper0 -
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 -
My WebSite has two sections with overlapping, or redundant articles on the same topics. Google is only listing one or the other article in Search Results. What should I do to have both pages (similiar but unique content ) to be listed?
My Web Site has two sections with overlapping, or redundant articles on the same topics. Google is only listing one or the other article in Search Results. What should I do to have both pages (similar but unique content ) to be listed? Example: http://www.womenshealthcaretopics.com/pregnancy_week_12.htm http://www.womenshealthcaretopics.com/pregnancy_12_weeks.html
Content Development | | docjamesmd0 -
Blogging for an ecommerce site
Hi There, Where would you install the blog? mydomain.com/blog/ blog.mydomain.com mydomainblog.com regards
Content Development | | Jvalops0