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
-
Help with Alt Image
Hi. Moz is alerting me that my blog has no alt image. I actually don't have an image inside the blog but it's in the header, as part of my wordpress theme. Now when I check this image in the header, the alt image keyword is there. I'm not sure how to fix it. Please help.
Content Development | | VAPartners0 -
Breaking a Big Website into Multiple Unrelated Sites
I have a big cluttered website that I want to simplify. There is content for patients, researchers, therapists who are looking for grants, etc.. Would it be a bad ideas to turn these into 3 or more, completely different sites with each focused on their specific demographic? Or should I just figure out how to organize the one site better? Thanks for your help!!!
Content Development | | bosleypalmer0 -
How do I split page content?
So I offer two services for which each has an FAQ page (let's call them S1 and S2). The problem is that I also have a longer FAQ page that covers both services (S1-2). I would like to eliminate the longer one and attach the relevant content to each of the shorter pages but i'm concerned that deleting pages with a lot of content might be a bad idea. I could redirect I suppose but I wouldn't know which page S1 or S2 to point redirect to. Any advice on this?
Content Development | | NationalPardon0 -
Pages and categories with the same name?
I manage a wordpress based site that is needing to under go a site architecture overhaul. the site is christ.org and one of the problems is it has 89 pages but really only 4 are navigatable (not a word apparently). The site also has over 400 posts so categories and parent pages are both definitely needed. One option is I convert a lot of the pages into posts, but would that happen to break any links pointing to those pages turned posts? Or another option is to keep the pages and posts and create a bunch of subpages, then I would most likely end up with similarly named categories and top level pages. I would guess the name of the category needs to be unique from page titles right? And not just unique but very much differentiated than any page title (not posts but page titles). Maybe what I need to do is convert the pages that are not really unique into posts and put them in the category it fits with. And then keep those that are unique as top level pages. The architecture needs some serious work I think 🙂 Any help would be greatly appreciated.
Content Development | | ThridHour0 -
Does this on huffington post help your seo aims
Hi, i am a huge fan of Huffington post, it is an amazing site, not just saying this because they have mentioned our site over 50 times, but i really like the site. But one question i have which i have noticed over and over again is does the following help with seo, as i am a bit puzzled with it here is one of their pages http://www.huffingtonpost.co.uk/2012/06/16/one-direction-set-to-be-worth-64m-in-a-year-after-worldwide-success_n_1602135.html?utm_hp_ref=uk-celebrity and the section i am puzzled about is Follow: Louis Walsh, One Direction, Simon Cowell, Sony Music, The Sun, UK Entertainment, X Factor, Harry Styles, Louis Tomlinson, Uk News, UK Entertainment News Can anyone let me know why the site does this and what benefits it brings
Content Development | | ClaireH-1848860 -
Access to a Clients Google Places Account
I would like to manage my clients Google places account so I can add pictures, fill out the profile etc. If he already has a Google places account how do I get access? I feel a little gun-shy about asking for his personal email and password to gain access.
Content Development | | Czubmeister0 -
Press Releases and Duplicate Content on Event Related Site
I have a site that lists events. I ask those submitting events to submit original content if possible, but frequently they submit press releases which are already published elsewhere. I rewrite some of the press releases, but do not have time to rewrite every press release that comes my way. I want my users to get a comprehensive list of events, but I don't want get a penalty for duplicate content. What is the best solution?
Content Development | | andywozhere0 -
Opinions for the Long URL strings in WordPress Blogs.
We use Wordpress for our agency Blogs. The URL's are very long and the Moz does not like the long URL's. Should we use the stubby, short Wordpress URL's for each blog post? Is there a "Best Practice" for how one should use the Wordpress URL string?
Content Development | | theideapeople0