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
-
Creating a Wiki page
Has anyone had any recent success with creating a Wiki page? I created a page that has been in Draft for 8 weeks waiting for a Wiki Editor to review and approve it. Perhaps someone here is has a more established Wiki account than mine and can help please? PS: Yes, I know a Wiki page doesn't hold much SEO value but it has not been created for SEO purposes
Content Development | | Marketing_Today1 -
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 -
Why do other sites rank higher for our blog content?
Our site has always allowed other sites to RSS feed our content. Recently, we've noticed that searches for a title of our blog post will rank 2 sites that only publish said content, while our links are nowhere to be seen on the SERPs for Google. Is there any way I can fix this or prod Google to adjust it for us? Background: We were ranked highly in many long tail keywords, but lost many of them in June 2013. During this time going forward, we received no manual action.
Content Development | | FreedomKeepsMe0 -
How to add Press Releases the site without it will be consider Copied ?
Hello guys,
Content Development | | WayneRooney
There is a Press Releases company that posting every month 2 Press Releases in their website about our company. I want to show the Press Releases post in our company as well.
How can i do it without that it will be consider Copied text ? Thank you0 -
Can I get Google to re-evaluate my comany's website?
For the last few months I've been rewriting website descriptions for the company I work for, trying to comply with the Panda algorithm as best I could. There are about 400 items. Today I am going to begin working on titles and descriptions. Question: Once I'm finished and have run the site through SEOMoz's pro tools, I would like to have Google look at the site _**in toto **_once the changes have been made so that maybe we can procure some decent organic rankings. Can the site be resubmitted, and what is the procedure? Ps. Today I am asking my fellow employees to help me proofread each description for grammar, spelling, accuracy, and keyword placement. I am also asking for suggestions from them.
Content Development | | RScime250 -
Is this a good website design for attracting google and readers
hi, we are looking at re-doing our website and would like to know if this site is a good example of attracting traffic and google. what i mean is, they only have the title of stories and not much content, please take a look and let me know if we can learn any lessons from this site or if they should be adding more content http://www.femalefirst.co.uk/
Content Development | | ClaireH-1848860 -
I want to remove some pages from my site with PR, what should I do with traffic?
I have a section of a site that I want to remove. It has a main page linked from the nav menu, and a half dozen subpages under that. The pages get some traffic and have ranks up to PR3, which is what my site's home page is. I'm no longer want to do these pages as they require tremendous upkeep and I'm not interested in keeping them going. So, I know if I just remove these pages and that's all, I'm going to pay for it somewhere with Google. What else should I do? I do't really have similar pages to direct them too.
Content Development | | bizzer0 -
Adding a picture page - Good or Bad?
I have a lot of cool pics that just did not quite make it on one of my pages. Not necessarily because I did not want to, but space reasons they just happened to lose out to another photo. What I was thinking was, maybe I can add like a gallery page? Possibly with links back to the pages that each photo was considered for? Would this be a decent idea or just a page deemed as having low quality/value and end up hurting my site. Or maybe you can add an idea that may make it work for me!
Content Development | | VictorVC0