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
-
Should cornerstone content have 3,500 words? Does Google discern words from the main text and from the references?
Is it true that cornerstone content should have at least 3,500 words? I've done some research and found that the recommended amount is between 2K-10k. Also, the content that we create/publish has a lot of references/citations at the end of each article. Does Google discern words from the main text and from the references? Meaning should I count references as part of the word count? Thanks for the help!
Content Development | | kvillalobos0 -
What's brewing on YouMoz? (And how you can Help)
In the last year, we've searched for ways to make YouMoz more interesting, more exciting and more inviting for the Moz community. The blog really does belong to the community, for it's the place where many novel ideas are shared, discussed, and further developed. Aside from being a great place to share ideas, though, YouMoz is also the primary vehicle by which many now-household names in online marketing were discovered. (Many of the top posts on YouMoz eventually find their way onto the main Moz Blog.) YouMoz belongs to the community. The blog was created as a place for the community to share and engage around bright ideas, in addition to being a vehicle for provoking thought around new concepts, strategies and tactics. For both aspiring and established authors, YouMoz has become a popular destination in the online marketing space. In the quest to make YouMoz even better, we’ve come with a few ideas to ensure that everyone continues to feel as though they can contribute to the blog. Beginning today, we’re introducing what we hope becomes four common formats for YouMoz: My Story, Headsmacking Tips, Problem Solved and Here’s How: My Story: The name pretty much says it all. Share with the community an interesting story related to online marketing. The story could be funny, personal or informational. As long as it’s interesting, well-written, and a benefit to the community, we’d love to hear it. A great example of the type of post we’re looking for is Mike Ramsey’s From Zero to a Million: 20 Lessons for Starting an Internet Marketing Agency. Headsmacking Tip: We’re bringing this format, first shared by Rand years ago on the main blog, out of the mothballs. Simply share with the audience an awesome online marketing-related tip that could make their jobs easier. (Example:Headsmacking Tip #21: Write Better Headlines Than Anyone Else.) Problem Solved: Tell the audience how you solved a significant marketing problem, making it easier for you to do your job. Share the nitty-gritty details, and include any graphics or tips needed for the community to solve the problem for themselves. (Example: A Simple Guide to Overcoming Ad Blindness for Publishers.) Here’s How: This style of post is meant to be a little more wide-ranging, allowing you to share with the audience ways they can successfully deploy a technique, tactic, strategy, tool or anything else you’ve gleaned that might be of value to marketers. (Examples: How to Write Emails That Get Opened Every Time and The 10 Tools I Use to Monitor Social Media More Effectively. A big shout out to Katy Katz for the inaugural post in this category: Here’s How to Write an Email That Throws off a Whole Room’s Productivity.) Sounds easy enough, doesn’t it? Don’t overthink it. Read our guidelines, then dive in and get started. Also, we’d love to hear what you think about these new formats. Plus, we welcome your comments or questions. Feel free to share your thoughts below
Content Development | | ronell-smith7 -
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 -
I work on a uk decorating website with five of our own bloggers all of which reside on the home page of the website on their own separete blogging urls as sub domains - is this a good idea or would google not like this from an seo point of view?
Should blogs that are part of an overall content site be on separate sites and link in or is it ok to promote them as content on the home page of the site and take users off to their own url to view the site. Is this good practise for seo?
Content Development | | Pday0 -
Publishing on sites with greater domain authority
Hello, I had an idea, probably not original: While my website is still gaining domain authority, I was thinking about publishing articles in a website with great domain authority that allows articles from third parties. This way the article's relevance + domain authority of the site would result in a better position on Google for the article I write and with proper links, I can attract people to my website. This would be a temporary strategy until my website's domain authority increases. Any suggestions on how to do this? Where can I publish articles to attract people to my website (except blogs)? Thanks a lot.
Content Development | | Tev0 -
If we use content copied from another site ( assuming we have not plagerized), does it hurt our Google Rankings?
We have permission from another company to copy their content and use it on our site. This happens when we are describing a manufacturer's product and we copy pages from their site and add these pages to our site in order to describe the product we are selling. Is this considered duplicate content? Can this practice hurt us?
Content Development | | huskers0 -
On-Site Blog or Blog Service for Best SEO Results
I had a blog associated with my site, then I had to merge two Google accounts and to make a long story short, my old Blogger page won't transfer to the new account. So, I'm starting fresh. My Question: Would I benefit most from an on-site subdomain blog, adding content to my site on a weekly/monthly basis, or an off-site blog such as Blogger, linking back to pages and resources on my site? Then, any other juicy tips would be great. Honestly, I won't expect a large subscription base. There will be a natural draw for some trade associates, and I'll be linking and promoting them as well. Thanks for any input. I'm new to the community, and SEO, but really impressed with this community.
Content Development | | honestabejosh0 -
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