Free auditStart free
GuideWordPress · HTTPS

WordPress HTTPS

Move a WordPress site to HTTPS: change the two URL settings, redirect HTTP, fix mixed content, force secure logins, and verify each step from the outside.

5 min
read
5
sources
Oct 30, 2026
updated
Scaplet Editorial Team
author
In one line

Install a certificate on your server first. Then change the WordPress Address and Site Address under Settings > General to https://, 301-redirect HTTP to HTTPS, and fix mixed content. WordPress is fully compatible with HTTPS once a TLS/SSL certificate is available to the web server, and FORCE_SSL_ADMIN secures logins.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

Change the URLs in WordPress

  1. 1

    Open the screen

    Go to Settings > General. WordPress Address (URL) is where your core files live. Site Address (URL) is what people type to reach the site.

  2. 2

    Switch both to https

    Change http:// to https:// in both fields and save. Keep the no-trailing-slash rule.

  3. 3

    If a field is greyed out

    WordPress's General Settings page says that if WP_SITEURL or WP_HOME is defined in wp-config.php, that value appears in the field and you cannot change it from the admin screen. Edit the constants instead.

wp-config.php, from the Changing The Site URL docs
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );
03Check it

Force secure logins and handle proxies

WordPress says this forces all logins and all admin sessions over SSL. It must be in wp-config.php, since defining it in a plugin file is not sufficient, and SSL must already be configured on the server. FORCE_SSL_LOGIN was deprecated in version 4.0, so use FORCE_SSL_ADMIN.

If a reverse proxy provides SSL and WordPress itself runs without it, these options initially send requests into an infinite redirect loop. The HTTPS handbook page shows how to make WordPress recognize the HTTP_X_FORWARDED_PROTO header, which assumes the proxy sets it, and it lists the Nginx proxy_set_header lines the proxy needs to pass. Copy that block from the page, because the details depend on your proxy.

wp-config.php
define( 'FORCE_SSL_ADMIN', true );
04Checklist

Redirect, canonicalize, then lock in

First2
Redirect HTTP to HTTPS with a 301. The guide says most web servers offer a simple redirect feature. See WordPress redirects for the options, and WordPress www redirect if hostname variants are also in play.
Make sure each page's canonical link points at the HTTPS URL. See WordPress canonical tags.
Next1
Use relative paths or leave out the protocol for intrasite URLs, as web.dev's guide advises, and use HTTPS URLs for links to other sites where possible.
Then1
web.dev's guide says to update links with a script, not by hand, and to test the script on a development copy if content is in a database.

web.dev's guide treats HSTS as the final step. It says clients that have listed your site as a known HSTS host are likely to hard-fail if the site ever has an error in its TLS configuration, such as an expired certificate. Turn it on only after HTTPS has run cleanly. See the missing HSTS issue.

05Active versus passive mixed content, per web.dev

Fix mixed content

Type

Passive

Examples
Images, video, audio
Browser behavior
Most browsers show the page as not secure. In some cases Chrome auto-upgrades the asset to HTTPS, and if there is no secure version it does not load
Type

Active

Examples
Scripts, stylesheets, iframes, other code the browser can execute
Browser behavior
Most browsers block it by default

In Chrome, DevTools logs mixed content and auto-upgrades to the Issues tab, listing each insecure resource with a restriction status. Firefox and Safari log messages in the console. In WordPress the usual sources are hard-coded http:// URLs in post content, theme files, widgets and plugin settings.

06How it works

Check it from the outside

  1. 1

    Redirect

    The response above should show 301 and a location: header starting with https://. Repeat for an inner page, a post, and /wp-login.php.

  2. 2

    Padlock and Issues tab

    Open the home page, a post, and a page with embeds in Chrome. Open DevTools and check the Issues tab for mixed content.

  3. 3

    Certificate quality

    web.dev's guide suggests testing your HTTPS configuration with Qualys' SSL Server Test, and says your site should score an A or A+.

  4. 4

    Search Console

    Confirm the HTTPS version of the site is what you monitor. See WordPress Search Console.

Expect a 301 and an https Location header
curl -I http://example.com/
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I change my WordPress site to HTTPS?

Install a certificate on the server, then change WordPress Address and Site Address to https:// in Settings > General, 301-redirect HTTP to HTTPS, and fix mixed content. Both settings should include the https:// part and have no trailing slash.

02Why can't I edit the WordPress Address in Settings > General?

WordPress says that if WP_SITEURL or WP_HOME is defined in wp-config.php, that value appears in the field and cannot be changed from the admin screen. Edit the constants in the file.

03What does FORCE_SSL_ADMIN do?

It forces all logins and all admin sessions to happen over SSL. Define it as true in wp-config.php, with SSL already configured on the server.

04What is mixed content?

An HTTPS page that loads some resources over HTTP. Most browsers block active mixed content such as scripts, stylesheets and iframes, and passive content such as images can still make the page show as not secure.

Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • wordpress.org
  • web.dev
  1. 01HTTPS | Advanced Administration Handbook | WordPress Developer Resourcesdeveloper.wordpress.org · checked 2026-11-01
  2. 02Settings General Screen | WordPress.org Documentationwordpress.org · checked 2026-11-01
  3. 03Migrating WordPress | Advanced Administration Handbookdeveloper.wordpress.org · checked 2026-11-01
  4. 04Enable HTTPS on your servers | web.devweb.dev · checked 2026-11-01
  5. 05What is mixed content? | web.devweb.dev · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane