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
-
Traffic to blog home page is going down after changing my WordPress Theme
I recently changed my wordpress theme from a standard free theme to a newer theme. The home page I switched up a bit adding more calls to action to some of our top posts and leading people to popular categories and so on. This greatly improved the usability of our site as it allowed us to highlight new posts. The previous free template simply listed 10 of our most recent posts on a page with small snippets and then you had to move to the next page to keep reading. Since switching my theme the blog traffic has stayed relatively level. That being said, the specific posts traffic is going up a lot whereas the organic traffic to the blog homepage is now nearly depleted. Is this a common thing to happen or is there anything I can do to fix this issue?
Content Development | | saultienut0 -
Can Google+ help you to rank?
I'm thinking about uploading photos to my Google+ and then embedding them in my post. Will adding photo from Google+ help me rank better.
Content Development | | WilCross1 -
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 -
FAQ page to target "long tail keywords".
I'm wondering if there is any benefit to creating a FAQ section on a website for the purpose of ranking for long tail keywords. If so, are there best practices in the way that the page is structured? Also, would doing this just help me rank the FAQ page for these terms or would it also help more critical pages on my website, such as homepage, contact, about, etc... which do not contain these keywords.
Content Development | | pharcydeabc0 -
Help with Content Revamp
Many years ago we wrote about 60 content pages for our surfboard e-commerce website targeting all the top popular keywords. Many of them generic but very keyword focused. We are now revamping our content our our site and want to move away from the generic side of things and actually rewrite all the pages to make them very useful and actually stuff our customers can really use and will find very helpful. I noticed that many times we wrote small pages less than 500 words that target similar keywords around a general theme. In looking at the analytics all the pages are getting a good amount of traffic and ranking well but im wondering would it be ok to focus on a main topic and combine similar pages if they are related? So i can take the say 60 articles and combine it down to say 10 articles and make the articles cover alot more stuff instead of just being small 500 word articles. As an example we have many surfboard models so we wrote an article for -Longboard Surfboards -Funboard Surfboards -Mini Malibu Surfboards -Retro Fish Surfboards -Womens Surfboards -Beginner Surfboards My question is could i weave these all together and write one long guide on say "Choosing The Type of Surboard you need" and cover all the board models in that article and then redirect the old pages to point to that one article. Would i still rank well for all these words Or would this destroy all my current rankings for these words? What is the best approach to rewriting and or combining old content pages that currently rank well but could be combined with others around the same theme to make it more user friendly?
Content Development | | isle_surf0 -
Google still caching old site
Hi all, We just acquired a new domain that was being squatted on by a reseller for a very long time and on the 5th June migrated our site over to it, replacing their advertising holding page. The domain is http://primate.co.uk It's been a week now though and Google hasn't seemed to have updated it's cache. Doing a search for 'primate.co.uk' in Google lists the site but with the old holding page description. Web master tools doesn't report any errors or issues with the site. Does anyone know how we can get Google to index the domain and update it's cache? Cheers, Gordon
Content Development | | Primate0 -
How to Integrate a Wordpress Blog into my Website
We are looking at integrating a blog into our website. Unfortunately, our content management system is very clunky and not set up to quickly publish blog style content. I'd like to use Wordpress and set up the blog as a subdomain of my company website. Our URL is www.blockandcompany.com so the blog URL would be www.blog.blockandcompany.com. Is it correct to say that if the blog is set up this way, the search engines will see the regular website and the Wordpress hosted blog as one big site? I want to use the blog to write keyword-rich content, but I don't want to divide my SEO "equity" between two separate sites. Any advice?
Content Development | | Blockinc1 -
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