"https" for my site appears in Google search result

Learn "https" for my site appears in google search result with practical examples, diagrams, and best practices. Covers html, wordpress, google-search development techniques with visual explanations.

My Site Appears as HTTPS in Google Search Results, But It's Not!

Hero image for "https" for my site appears in Google search result

Discover why Google might be showing your site as HTTPS in search results even if you haven't configured SSL, and learn how to fix it.

It can be alarming to see your website listed as HTTPS in Google search results when you know you haven't implemented an SSL certificate. This discrepancy can lead to confusion for users, potential security warnings in browsers, and even impact your site's perceived trustworthiness. This article will explore the common reasons behind this behavior and provide actionable steps to diagnose and resolve the issue, ensuring your site's search appearance accurately reflects its security status.

Understanding Google's HTTPS Preference

Google strongly advocates for HTTPS as a ranking signal and a standard for web security. Their crawlers are constantly looking for secure versions of websites. If Google detects that an HTTPS version of your site exists or is being served, even if incorrectly, it may prioritize indexing and displaying that version in search results. This can happen due to various factors, including server misconfigurations, CDN settings, or even old redirects.

flowchart TD
    A[Google Crawler] --> B{Detects HTTPS version?}
    B -->|Yes| C[Indexes/Displays HTTPS]
    B -->|No| D[Indexes/Displays HTTP]
    C --> E{Is HTTPS actually configured?}
    E -->|No| F["User sees 'Not Secure' warning"]
    E -->|Yes| G[User sees secure site]
    F --> H[Negative User Experience]
    H --> I[Lower SEO Ranking]
    G --> J[Positive User Experience]
    J --> K[Improved SEO Ranking]

Google's HTTPS detection and its impact on user experience and SEO.

Common Causes for Incorrect HTTPS Display

Several scenarios can lead to Google displaying an HTTPS URL for your site when it's not truly secure. Identifying the root cause is crucial for a proper resolution. These often involve server-side settings, content delivery networks (CDNs), or lingering redirects from previous configurations.

1. Check Your Hosting/Server Configuration

Many hosting providers offer automatic SSL certificates (like Let's Encrypt). Even if you haven't explicitly enabled it, it might be active. Check your hosting control panel (cPanel, Plesk, etc.) for SSL/TLS settings. Look for any active certificates or forced HTTPS redirects at the server level (e.g., Apache's .htaccess or Nginx configuration).

2. Inspect Your .htaccess File (Apache)

If you're on an Apache server, the .htaccess file in your site's root directory is a common place for redirects. Look for lines that force HTTPS. Here's an example of what to look for:

3. Review Nginx Configuration

For Nginx servers, check your server block configuration files (usually in /etc/nginx/sites-available/ or similar). Look for listen 443 ssl; directives and rewrite rules that force HTTPS.

4. Examine CDN Settings

If you use a CDN (like Cloudflare), it might be configured to serve content over HTTPS, even if your origin server is HTTP. Check your CDN's SSL/TLS settings. Cloudflare, for instance, has various SSL modes (Flexible, Full, Strict). 'Flexible' SSL can cause this issue as it encrypts traffic between the user and Cloudflare, but not between Cloudflare and your origin server.

5. Check WordPress Settings (if applicable)

For WordPress sites, go to Settings > General in your admin dashboard. Ensure both 'WordPress Address (URL)' and 'Site Address (URL)' are set to http://yourdomain.com (or https:// if you intend to use SSL). Also, check for any plugins that might be forcing HTTPS.

6. Use Google Search Console

Add both the HTTP and HTTPS versions of your site to Google Search Console. This allows you to see how Google is indexing each version. You can also use the 'URL Inspection' tool to see how Google views specific URLs.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Example .htaccess rules that force HTTPS.

Resolving the Issue: What to Do

Once you've identified the source of the incorrect HTTPS display, you have two primary paths: either properly implement HTTPS or ensure Google only indexes the HTTP version. The recommended approach for modern websites is to implement HTTPS correctly.

flowchart TD
    A[Problem: Google shows HTTPS, site is HTTP] --> B{Identify Root Cause}
    B --> C{Server Config}
    B --> D{CDN Settings}
    B --> E{CMS/Application}
    B --> F{Old Redirects}

    C --> G[Option 1: Implement HTTPS Correctly]
    D --> G
    E --> G
    F --> G

    G --> H[Obtain SSL Certificate]
    G --> I[Install & Configure SSL]
    G --> J[Update All Internal Links to HTTPS]
    G --> K[Force HTTPS via Server/CMS]
    G --> L[Update Google Search Console]

    B --> M[Option 2: Force HTTP (Not Recommended)]
    M --> N[Remove all HTTPS redirects]
    M --> O[Ensure no SSL cert is active]
    M --> P[Update Google Search Console to prefer HTTP]

    H & I & J & K & L --> Q[Solution: Secure HTTPS Site]
    N & O & P --> R[Solution: HTTP Site (Less Secure)]

Decision tree for resolving incorrect HTTPS display in Google Search.

After making changes, it's crucial to monitor your site's behavior and Google Search Console. Use tools like curl -I https://yourdomain.com to check HTTP headers and ensure your site is responding as expected. Be patient, as it can take some time for Google to re-crawl and update its index.