# 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.

Canonical: https://scaplet.com/seo/wordpress/ssl

Guide WordPress 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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fssl%20(%22WordPress%20HTTPS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fssl%20(%22WordPress%20HTTPS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fssl%20(%22WordPress%20HTTPS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fssl%20(%22WordPress%20HTTPS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 6 parts, 5 minutes.

1. [Order of work 01](#order-of-work)
2. [Change the URLs in WordPress 02](#change-the-urls-in-wordpress)
3. [Force secure logins and handle proxies 03](#force-secure-logins-and-handle-proxies)
4. [Redirect, canonicalize, then lock in 04](#redirect-canonicalize-then-lock-in)
5. [Fix mixed content 05](#fix-mixed-content)
6. [Check it from the outside 06](#check-it-from-the-outside)

_01_What each layer owns

## Order of work

Layer

### Certificate on the web server

Who does it

Your host or you

Source says

WordPress is fully compatible with [HTTPS](/glossary/https) when a TLS / [SSL certificate](/glossary/ssl-certificate) is installed and available for the web server to use

Layer

### WordPress Address and Site Address

Who does it

You, in WordPress

Source says

Both settings should include the `https://` part and should not have a slash at the end

Layer

### HTTP to HTTPS redirect

Who does it

Your server or a redirect tool

Source says

web.dev's guide says to use 301 (Moved Permanently) to indicate that the HTTPS version is canonical, and to redirect your users to the HTTPS version

Layer

### [Canonical tag](/glossary/canonical-url)

Who does it

WordPress theme or SEO plugin

Source says

Put a canonical link in the head of each page using `<link rel="canonical" href="https://…"/>`

Layer

### [Mixed content](/seo-issues/mixed-content-issue)

Who does it

You, in content and theme

Source says

Change insecure content requests to secure content so the page keeps loading correctly

The server-side parts come first because WordPress cannot create the certificate for you. web.dev's HTTPS guide says that if you do not have HTTPS service yet, enable it first, without redirecting.

_02_How 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' );
```

**Locked out after the change**The Migrating WordPress handbook describes a recovery: add `update_option( 'siteurl', 'https://example.com' );` and `update_option( 'home', 'https://example.com' );` immediately after the initial `<?php` line of the active theme's `functions.php`, load the site, then remove the lines. It notes the `wp-config.php` constants hard-code the values and are not necessarily the best fix.

_03_Check 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 );
```

_04_Checklist

## Redirect, canonicalize, then lock in

First_2_
Redirect HTTP to HTTPS with a 301. The guide says most web servers offer a simple redirect feature. See [WordPress redirects](/seo/wordpress/redirects) for the options, and [WordPress www redirect](/seo/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](/seo/wordpress/canonical-tags).

Next_1_
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.

Then_1_
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.

**Database search and replace**The Migrating WordPress handbook warns that a search and replace over your entire database to change URLs can cause problems with serialized data, because some themes and widgets store values with the length of your URL marked. Use a tool that handles serialization, and back up first.

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](/seo-issues/missing-hsts).

_05_Active 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.

_06_How 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](/seo/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.

_01_ How 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](/glossary/trailing-slash).

_02_ Why 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.

_03_ What 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.

_04_ What 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. 01 [HTTPS | Advanced Administration Handbook | WordPress Developer Resources](https://developer.wordpress.org/advanced-administration/security/https/) developer.wordpress.org · checked 2026-11-01
2. 02 [Settings General Screen | WordPress.org Documentation](https://wordpress.org/documentation/article/settings-general-screen/) wordpress.org · checked 2026-11-01
3. 03 [Migrating WordPress | Advanced Administration Handbook](https://developer.wordpress.org/advanced-administration/upgrade/migrating/) developer.wordpress.org · checked 2026-11-01
4. 04 [Enable HTTPS on your servers | web.dev](https://web.dev/articles/enable-https) web.dev · checked 2026-11-01
5. 05 [What is mixed content? | web.dev](https://web.dev/articles/what-is-mixed-content) web.dev · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn WordPress www redirect CMS](/seo/wordpress/www-redirect) [Related HTTPS Crawling and indexing](/glossary/https) [Read next WordPress canonical tags CMS](/seo/wordpress/canonical-tags) [Do Run a free site audit Free, about two minutes](/site-audit)

More in WordPress SEO
[AMP on WordPress](/seo/wordpress/amp) [Google Analytics on WordPress](/seo/wordpress/google-analytics) [How to put WordPress in maintenance mode](/seo/wordpress/maintenance-mode) [WordPress 404 page](/seo/wordpress/404) [WordPress AI crawlers](/seo/wordpress/ai-crawlers) [WordPress breadcrumbs](/seo/wordpress/breadcrumbs) [WordPress canonical tags](/seo/wordpress/canonical-tags) [WordPress Core Web Vitals](/seo/wordpress/core-web-vitals) [WordPress favicon](/seo/wordpress/favicon) [WordPress Google Search Console setup](/seo/wordpress/search-console) [WordPress hreflang and multilingual SEO](/seo/wordpress/hreflang) [WordPress HTTPS](/seo/wordpress/ssl) [WordPress image SEO](/seo/wordpress/image-seo) [WordPress internal links](/seo/wordpress/internal-links) [WordPress lazy loading](/seo/wordpress/lazy-loading) [WordPress noindex](/seo/wordpress/noindex) [WordPress redirects](/seo/wordpress/redirects) [WordPress robots.txt](/seo/wordpress/robots-txt) [WordPress SEO plugins](/seo/wordpress/seo-plugin) [WordPress SEO titles and meta descriptions](/seo/wordpress/title-and-meta) [WordPress speed optimization](/seo/wordpress/page-speed) [WordPress structured data](/seo/wordpress/structured-data) [WordPress www redirect](/seo/wordpress/www-redirect) [WordPress XML sitemap](/seo/wordpress/xml-sitemap)

Terms on this page
[HTTPS](/glossary/https) [SSL certificate](/glossary/ssl-certificate) [Canonical URL](/glossary/canonical-url) [Trailing slash in URLs](/glossary/trailing-slash)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
