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 -
Wordpress Overly Dynamic URLs
Moz is giving me an overly dynamic URL warning for around 30 or so of these on our blog. http://blog.domain.com/?page=products&do=domain-com-looks-like-a-blog-title I have no idea what's causing this, we have the permalinks set up for category/post and are running yoast. Anyone have any idea what it is? And how can I stop them being crawled. They link to the blog homepage when clicked, which is set to canonical in the head so it shouldn't do any harm - but i'd like to remove them all the same. Will /Disallow /?=page work in robots.txt?
Content Development | | SolopressPrint0 -
How do I properly sitemap a site with static pages + Wordpress in it's own directory?
I apologize for the awkward wording in the headline. No to the issue, I have a site with static pages that are created as follows: url.com, url.com/page1, url.com/page2, etc. I then have WordPress install at url.com/blog. What is the proper method for creating a comprehensive sitemap for my entire domain. I like the sitemap feature provided by Yoast SEO plugin but I assume it will only index the wordpress directory (url.com/blog). Any help would be greatly appreciated!
Content Development | | Qcmny0 -
Google Image Search - How to rank?
Hi, How would you optimise for rank higher in image search? Any tips/rules which need to be applied. Thanks.
Content Development | | Bondara0 -
Are there quality blog sites allowing guest blogging ?
hi can someone guide me the right direction for guest blogging ? i m looking for quality blog sites that allow guest blogging especially for ecommerce related sites. Thank you Nick
Content Development | | orion680 -
How to make new content Indexed faster by google
I would like to know what can I do. Normally it takes google around 3 days to index my content. I got a site map, swiched the crawling rate to the fastest in my webmaster tools. I also tried crawling my homepage as google bot and sending it to the index with all linked pages but even if I do so my content takes around 3 days if not more to get indexed. I publish around 20 posts a week. My SEOmoz page authority is 48. Some sites of my competition seem to be getting their content indexed in the same day. What else can be done?
Content Development | | sebastiankoch0 -
Duplicate Page Content & Rel-Canonicals
The SEO Moz duplicate page content tool lists the following URL's as having duplicate content: http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx?sort=PriceAsc&pi=2 The second URL is the price sorter/second page of the category and contains the following rel-canonical: | http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx"> Are we using the rel-canonical correctly in this case? If so, why does it continue to show up as duplicate content in our SEO Moz report? There are over 1,000 URLS listed in the report with the exact same issue. |
Content Development | | ironpac0 -
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