Https Version of Homepage in SERPS
-
The https version of our homepage appears in Google's SERPs. We have rel canonical on the page pointing to the http version. We have a redirect in our htaccess that sends https to http.
I thought this was just a fluke and it would be fixed by the next crawl, but it's been like this for a few weeks now. Not only that, but we're losing rank a bit and I'm afraid there's a correlation.
Has this ever happened to anyone?
-
Thanks for the code. It worked! And thanks for providing the link to the server header check so I could properly test it.
-
Hi Marisa,
I'm no .htaccess expert, but that code looks a little wonky to me. Is it complete? I see lots of rewrite conditions, but not rewrite rules.
Second problem, when I run the https version through a server header check, it looks like the redirect serves a 302 status code, which indicates a temporary move and passes no link juice. Oh no!
So the first thing I would do is to make sure that any Rewrite rules in your htaccess file contain a 301 directive like this: [R=301,L]
For Example, the following might work:
<code>RewriteEngine On RewriteCond %{HTTPS} !^on$ RewriteRule (.*) http://yourdomain/$1 [R=301,L]</code>
So the first thing I would do is to make sure that any Rewrite rules in your htaccess file contain a 301 directive like this: [R=301,L]
Another option to consider is making your entire site secure to https. Many websites are moving this way, and Google has no problem crawling and ranking these sites appropriately. The important thing is to make sure you act consistently, and get those 302's solved!
It is odd that you have proper canonical tags and Google still displays the https version, but after you get this sorted out things will likely resolve themselves.
Hope this helps. Best of luck with your SEO!
-
Hi Marisa, glad you were able to get the redirect set back up. Hopefully someone can help you with this secondary issue. htaccess can be pretty complex!
Sorry I couldn't be of more help in that area.
-
The redirect is back now (don't know what happened) but now when I click on the order page, which is supposed to be https, it redirects it to http even though I have the following code in the htaccess:
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/order.html
RewriteCond %{REQUEST_URI} !^/cgi-bin/order.cgi -
I am referring to the one in my profile. I will check that out and get back to you. Thanks.
-
Hi Marisa,
I had to dig, but is the site you are speaking about the one in your profile? When I check the header status of the https page I get a 200, meaning the 301 isn't being recognized. If you are referring to a different site please disregard.
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
-
GA4 showing 2 versions of my homepage
When my website Custom Made Casino switched from universal analytics to GA, i have noticed that now in the behavior section it is showing 2 versions of my homepage which I feel may be impacting seo. It is showing the main url which we use for everything, https://custommadecasino.com/ , and it is showing https://custommadecasino.com/index.php?route-common/home. This was never the case with universal. Does anyone know if this is a problem and if so, how do i fix it so that our proper homepage is what is indexed?
Technical SEO | | CustomMadeCasino0 -
Siri Suggested Website Showing Instead of Homepage in UK Region How?
Hi All, When I search for my brand name in safari browser either in ipad, iphone or desktop it is showing "siri suggested website and showing reviewcentre.com site of my brand first instead of my homepage. 2) My site is for UK and it is happening in UK region only 3) I am aware of this so please dont suggest this - https://www.macrumors.com/how-to/apps-siri-suggestions-ios-11/ it is happening for 1st time user also. Thanks!
Technical SEO | | Arnold30 -
Sitemap.gz is being indexed and is showing up in SERP instead of actual pages.
Sitemap.gz is being indexed and is showing up in SERP instead of actual pages. I recently uploaded my sitemap file - https://psglearning.com/sitemapcustom/sitemap-index.xml - via Search Console. The only record within the XML file is sitemaps.gz. When I searched for some content on my site - here is the search https://goo.gl/mqxBeq - I was shown the following search result, indicating that our GZ file is getting indexed instead of our pages. http://www.psglearning.com/catalog 1 http://www.psglearning.com ...www.psglearning.com/sitemapcustom/sitemap.gz... 1 https://www.psglearning.com/catalog/productdetails/9781284059656/ 1 https://www.psglearning.com/catalog/productdetails/9781284060454/ 1 ... My sitemap is listed at https://psglearning.com/sitemapcustom/sitemap-index.xml inside the sitemap the only reference is to sitemap.gz. Should we remove the link the the sitemap.gz within the xml file and just serve the actual page paths? <sitemapindex< span=""> xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"></sitemapindex<><sitemap></sitemap>https://www.psglearning.com/sitemapcustom/sitemap.gz<lastmod></lastmod>2017-06-12T09:41-04:00
Technical SEO | | pdowling0 -
Horizontal Scroll in SERPs
Hello,
Technical SEO | | Koki.Mourao
I would love to find out how this is implemented. I do not know this function's name but it basically is a horizontal scroll which loads on top of a SERP. What is it called? How can I implement this. Is it special tags? What? How? Any tips would be very helpful. Thanks qJMLCCF0 -
Bigcommerce only allows us to have https for our store only, not the other pages on our site, so we have a mix of https and http, how is this hurting us and what's the best way to fix?
So we aren't interested in paying a thousand dollars a month just to have https when we feel it's the only selling point of that package, so we have https for our store and the rest of the site blogs and all are http. I'm wondering if this would count as duplicate content or give us some other unforeseen penalty due to the half way approach of https being implemented. If this is hurting us, what would you recommend as a solution?
Technical SEO | | Deacyde0 -
Deleting Subdomain - 301 to Homepage Best Option?
We have a subdomain with lots of content that we think Google may consider thin, so we're thinking of removing it to improve our SEO. Is the best way to do this to simply remove the directory and then 301 everything to our homepage? Basically the subdomain consists of product images with links to retailers where they can be purchased. We've basically used it to refer our Facebook fans to when they like a product they've seen on our Facebook page, so the subdomain was not meant to rank for SEO purposes. However, it is integrated with our main webpage, and it is possible that it is hurting our SEO efforts. The subdomain is photos.yournextshoes.com and the main domain www.yournextshoes.com
Technical SEO | | Jantaro0 -
Getting images indexed in the SERPS
Good Afternoon form 13 degrees C totally Sunny Wetherby UK 🙂 Am i right in thinking that the only way to get images appearing like this in your serps: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/innovia-merchant-immages-serpscopy.jpg is to be hooked up to Google Merchant? Which kind of means if the sight your working on has no images then this type of enhancement is out of bounds? Thanks in advance, David
Technical SEO | | Nightwing0 -
Star Ratings in SERPS: Is this the correct mark up?
Having trouble getting star ratings to appear in the SERPs. Here's the 'marked up' HTML that a designer implemented into a website, I'm pretty sure it's missing a bunch of stuff: Read the reviews 5 Any help much appreciated!
Technical SEO | | NickPateman810