Skip to content
FunnelGuard

Fix guide by FunnelsGuard

HTTP and HTTPS both return 200: how to find and fix it

SEO-054High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Every page can be reached by a secure address (https://) and an insecure one (http://). A healthy site answers the insecure address with a 301 redirect (a permanent move) to the secure one. In this issue, the insecure address does not redirect. It returns 200 OK and shows the full page.

Why it costs you leads or sales

Duplicate URLs cause several problems that add up on a site that depends on search and paid traffic.

What goes wrong
  • Ranking signals such as links are split between two versions instead of building on one.
  • Google may index or show the http version in results, which browsers can flag as Not secure.
  • Crawl budget is spent on duplicate copies instead of your new pages.
  • Visitors who land on http may see a browser warning on pages with forms, which hurts trust at the moment they decide to enter details.
  • Analytics and ad reports can split traffic across two hostnames, and cookies set on one version may not carry to the other.
  • Forms posted from an http page are sent unencrypted.
What happens to a visitor on the http version
  1. Link or ad clickPoints to http://example.com/offer
  2. Server responseReturns 200 instead of a 301 to https
  3. BrowserShows Not secure on the form page
  4. Lead formVisitor hesitates or leaves

The missing redirect leaves visitors on an insecure copy of the page.

How to check if your site has it

You need to see the raw status code of the http address, not what the browser ends up showing. Browsers often auto-upgrade to https, which can hide the problem.

Check the status of the http version
  1. Run a header request

    In a terminal run the command below. A healthy site shows 301 and a Location header starting with https://.

  2. Test several URL types

    Check the home page, a deep page, a page with a query string and your form or checkout URLs. A redirect can work on the home page and fail elsewhere.

  3. Look for a 200

    If the http request returns HTTP/1.1 200 OK, the issue is present.

  4. Check Google

    In Google Search Console use URL Inspection on the http version, or search Google for site:example.com and look for http:// results.

Check the http response headersbash
curl -I http://example.com/pricing

# Healthy result:
# HTTP/1.1 301 Moved Permanently
# Location: https://example.com/pricing

# Problem result:
# HTTP/1.1 200 OK

How to fix it

Add one site-wide rule that sends every http request to the same path on https with a 301. Where you do it depends on your platform. Make sure the SSL certificate is valid first, or visitors will see a certificate error after the redirect.

Force https by platform
  1. Update the site URLs

    Go to Settings > General and change both WordPress Address and Site Address to start with https://.

  2. Add a server redirect

    On Apache hosting add the rule from the Custom code tab to .htaccess above the WordPress block. Many hosts also offer a Force HTTPS switch in their control panel.

  3. Fix mixed content

    Replace remaining http:// links to images and scripts with https:// using a search-and-replace tool or plugin of your choice.

Apache .htaccess: redirect all http to httpshtaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]
Nginx: redirect port 80 to httpsnginx
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://$host$request_uri;
}
After the redirect is in place
  1. Update canonical tags

    Make sure every rel=canonical uses https URLs.

  2. Update the sitemap

    List only https URLs in your XML sitemap.

  3. Update internal links and ads

    Change hard-coded http links, ad final URLs and email links to https to avoid an extra hop.

  4. Add the https property in Search Console

    Use a Domain property if possible, so both versions are covered.

  5. Consider HSTS later

    Once everything works on https, you can add a Strict-Transport-Security header so browsers skip http entirely. Test first, as it is hard to undo quickly.

Server response for the http address

Before

  • http://example.com/pricing returns 200
  • Two copies of every page can be indexed
  • Visitors may land on an insecure page

After

  • http://example.com/pricing returns 301 to https
  • One preferred URL for every page
  • All visitors end up on the secure page

How to confirm it's fixed

Confirmation checks
  • curl -I on http home page returns 301 with an https Location.
  • A deep page and a URL with a query string both redirect and keep the path and parameters.
  • The redirect is a single hop, not a chain through several URLs.
  • The final https URL returns 200 and shows a valid padlock.
  • Form and checkout pages load without mixed-content warnings.
  • Search Console URL Inspection shows the https version as the indexed one over time.

How to prevent it happening again

The redirect often breaks after a hosting move, a CDN change, a domain reconnect, a new landing page tool or a server config rewrite. Keep the rule in version control or documented settings, and re-test after any of these changes.

Prevention habits
  • Re-run the curl check after every hosting, DNS or CDN change.
  • Use https in all new links, ads and email templates.
  • Keep the SSL certificate renewing automatically and watch expiry dates.
  • Check new subdomains and funnel domains for the same redirect.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It checks the http to https redirect on the URLs of your monitored journeys, such as your lead form and checkout pages. If the http version of one of those URLs does not redirect to https, you can see it in the run.

It does not crawl your whole site, so it will not find an http copy of a blog post, a category page or any URL that is not part of a journey. It also does not check what Google has indexed.

To cover the rest by hand, run the curl check on your home page and a sample of other page types, review the Page indexing report in Search Console for http URLs, and search Google for site:yourdomain.com to spot http results. You can start with the Free plan (1 site, 2 journeys, daily checks, no card) and a free read-only website audit is also available.

What is covered by FunnelGuard and what you check by hand
CheckFunnelGuardBy hand
http to https on journey URLsYesOptional
http to https on other site pagesNocurl or a site crawler
http URLs indexed by GoogleNoSearch Console, site: search
Canonical and sitemap use httpsNoView source, sitemap file

Questions people ask

Why do both http and https versions of my site load?

Your server or host is not redirecting insecure requests. The SSL certificate makes https work, but a separate rule is needed to send http visitors there with a 301 redirect.

Is it bad for SEO if http and https both return 200?

Yes. Search engines see two identical URLs, which can split link signals, waste crawl budget and cause the http version to appear in results. A 301 redirect to https fixes it.

How do I redirect http to https?

Add a site-wide 301 rule at the server, CDN or platform level. On Apache use a RewriteRule in .htaccess, on Nginx return 301 from the port 80 server block, and on hosted builders switch on the SSL or force-https setting.

Should I use a 301 or 302 redirect for http to https?

Use a 301, which tells search engines the move is permanent. A 302 signals a temporary move and may keep the http URL in play longer.

How can I check if http redirects to https?

Run curl -I http://yourdomain.com/page and look at the first line. A 301 with a Location header starting with https:// is correct, and a 200 means the problem is present.

Does a canonical tag replace the https redirect?

No. A canonical tag is a hint, while a 301 redirect is a firm instruction that also moves visitors. Use the redirect, and also point canonicals to https.

Will redirecting http to https lose my rankings?

A correct one-hop 301 passes signals to the https URL, so a well-done redirect should not harm rankings. Problems usually come from redirect loops, chains or broken certificates, so test after the change.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: http->https checked on journey URLs.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.