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
-
Duplicate content on the same site
We have a client who wants us to use the same piece of copy twice on their website. Once to promote a workshop and once to promote a conference talk. We feel this would be bad practice from a user perspective, but we were wondering how search engines would regard this? Thanks Ian
Content Development | | Substance-create0 -
B2b services site, deep long tail services or flat and broad
Hi all, i have a small internet agency with services in several area's.
Content Development | | mdkay
Currently i structud my services in 2 different area's.
General services and specialized products with services underneath. like so:
domain.com/services
domain.com/services/service1
domain.com/services/service2
and so on. domain.com/product
domain.com/product/service1
domain.com/product/service2 domain.com/product2
domain.com/product2/service1
domain.com/product2/service2 But now im thinking of create loads of different services i provide,
there are some overlapping content of course, but all services are still individual.
But i can write a lot of unique content about all the services. But is it smarter to make just a few big pages with the services more bundled.
Or really long tail. Now i have around 15 services pages.
when i make it a lot deeper im talking about 40 pages. Currently my complete website is around 35 pages.0 -
Advice on Security Concerns for WordPress Site
My company has a WordPress site (URL is learn.automationdirect.com) It is a very simple site and is currently under utilized. I would like to make some SEO improvements to it by activating comments and installing an SEO plugin like Yoast but, I am being help back by concerns about the sites security. Is there some sort of suggestion/advice you guys can point me to that will help get the site to a place where we are confident in it's security level, and I can move forward with optimizing it?
Content Development | | ChadC0 -
Setting up a Blog for an e-commerce site
Hi All, I need some pointers on setting up a blog for our new e-commerce site. The new site uses magento and is going live in a month or so. This is a bit of a learning experience for me as I have never set a company blog up before I am not sure of the do's and dont's. Any ideas will be very appreciated. Cheers Nic
Content Development | | nicc19760 -
WordPress Guest Post Admin Access?
Is there a plugin or function in WordPress for a guest poster to just get admin access to control comments? Example: Big Brand X writes a guest post on www.yoursite.com. Big Brand X wants admin access to approve or delete comments on their guest on www.yoursite.com. Big Brand X doesn't want access to edit their guest post or any other post on www.yoursite.com, they just want admin access to manage the comments on their guest post. Is this possible? Thanks for the help!
Content Development | | explorionary0 -
What are tier 1, tier 2, tier 3 keywords (pages)?
I am seeing these terms, but for the life of mine I can't understand what they are. Could anybody explain that in layman's terms? Thanks.
Content Development | | VinceWicks0 -
Your Site and Google News Question
My site has been in Google News for about 3 years. Over the weekend, I received this message from Google Hi John, We periodically review news sources, to ensure Google News offers a high quality experience for our users. When we reviewed your site, mainstreetmonroe.com, we found that we can no longer include it in Google News at this time. We reviewed your site and are unable to include it in Google News at this time. We can't include sites that don't have a formal editorial-review process for submitted content. If this exists on your site, please let us know where and we'll be happy to review your site again. Mainstreetmonroe is scheduled to be removed from Google News for a period of at least 30 days. After this 30-day period has elapsed, you can re-apply for inclusion in Google News provided your site meets our guidelines. We appreciate your assistance in this matter. Please note that you'll still be able to find your site in Google Web Search and other Google services. Thanks for your interest in Google News. Regards, The Google News Team What exactly do they mean? I submitted my website news section, but they have been displaying our forum area in the news too. I think the forum is what GN is talking about. What is the best way to fix this problem? Move the forum to a subdomain? Website: http://www.mainstreetmonroe.com/ Forum: http://www.mainstreetmonroe.com/Voice/forum.asp?FORUM_ID=2
Content Development | | JohnBeagle0